Jump to content

Oops Darn Mysql Functions messing up my col names!


law

Recommended Posts

Ok.. as a novice coder.. I am not aware of all the functions associated with any language.. well it has bitten me in the rump!

 

Here is an Example:

 

Table Name: LocationOfClothes

-----------------------------------------------------------------------------------------------------------------------------------------------

| id                                      |  left                                  |  right                                | head                      | chest    |

-----------------------------------------------------------------------------------------------------------------------------------------------

| 1                                          glove                                    0                                        hat                              0        |

 

 

Ok in this example left, right,head,chest are places you can put clothing. Well if you try to update column "left" you get an error bc "left" is a predefined mysql function?

 

You can SELECT * the table without an error. Due to this. I have written myself into a pickle. I have been using the col names all throughout my code. It would be a headache to "redo" it. I may have to.. I just thought I would toss it out to you guys to see if you know of a way I can update the "left & right" Columns

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.