MySQL Forums
Forum List  »  Oracle

MySQL KeyWords WorkAround
Posted by: Tim McConechy
Date: October 22, 2004 12:09PM

Hi,
I am having a problem with a few "key words" on mysql.
LEFT,DATABASE,FIELDS,LOAD,SEPARATOR ,SQL,KEY

These are currently column names in our application tables.
On other systems (oracle,sql server ect I can get around the problem by puting quotes around the identifiers. According to the mysql help this should be possible too. So I tried:

mysql> CREATE TABLE TEST ('LEFT' INT);
ERROR 1064 (42000): You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near ''LEF
T' INT)' at line 1


It seems this type of quotes " does not work nor does '.

So the question is how do I get around this problem.

BR
Tim

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL KeyWords WorkAround
8681
October 22, 2004 12:09PM
3655
October 22, 2004 03:11PM
4954
October 25, 2004 10:39AM
2883
November 11, 2004 09:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.