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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.