On 18-Mar-01 Rodney J. Woodruff wrote:
> 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,

 how big a varchar ?

> first_name CHAR(30),

       this is worthless (see  *Note Silent column changes)


> email_address VARCHAR,

 as above.

> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)

Regards,
-- 
Don Read                                         [EMAIL PROTECTED]
-- If you are going to sin, sin against God, not the bureaucracy. 
                  God will forgive you but the bureaucrats won't. 

---------------------------------------------------------------------
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

Reply via email to