MySQL Forums
Forum List  »  Newbie

Why wont this work?
Posted by: Ronald Rowell
Date: November 25, 2010 09:22AM

I know it has to be because of use of a reserved word, the book I have says this should work, but it does not

CREATE TABLE checks
('check' varchar(20) not null);

I do it this way and it works:

CREATE TABLE checks
('checks' varchar(20) not null);

it creates the table, I thought 'check' in quotes would tell mysql its not the reserved word CHECK ???

Thanks for being patient with the probably asked already asked question, but I could not find it in the wealth of information on the great site...

Options: ReplyQuote


Subject
Written By
Posted
Why wont this work?
November 25, 2010 09:22AM
November 25, 2010 09:41AM
November 25, 2010 10:14AM
November 25, 2010 10:21AM
November 25, 2010 01:23PM


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.