MySQL Forums
Forum List  »  General

About 'FIRST' keyword in ALTER sentence
Posted by: Kharif Zhang
Date: March 28, 2009 07:56AM

When I use this:
mysql> ALTER TABLE zMem ADD fName VARCHAR(14) FIRST Address;
generates the following error:
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 'Address' at line 1

I try :
mysql> ALTER TABLE zMem ADD fName VARCHAR(14) AFTER Address;
And it's OK.

Finally, how can i solve my problem? I need use 'FIRST'!

Options: ReplyQuote


Subject
Written By
Posted
About 'FIRST' keyword in ALTER sentence
March 28, 2009 07:56AM


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.