Can someone look at this syntax and tell me what is wrong with it. Any
and all help is appreciated. I worked with several databases and have
never had any trouble writing CREATE statements in the past.
I get the following error when I run this create statement. So what is
wrong with my syntax. I found this same error when I searched the list
but none of them referred to a similar create statement causing this
error. Thank you very much for all your help.
-- Rodney
ERROR 1064 at line 1: You have an error in your SQL syntax near 'NOT
NULL PRIMARY KEY,
first_name CHAR(30),
middle_name CHAR(30),
last_name CH' at line 3
CREATE TABLE students
(
student_id VARCHAR NOT NULL PRIMARY KEY,
first_name CHAR(30),
middle_name CHAR(30),
last_name CHAR(30),
email_address VARCHAR,
website VARCHAR,
phone_number VARCHAR,
address1 VARCHAR,
address2 VARCHAR,
city VARCHAR,
state VARCHAR,
zip VARCHAR,
country VARCHAR,
INDEX (last_name, first_name)
)
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php