error in create table statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bhavesh1978
    New Member
    • Mar 2007
    • 32

    error in create table statement

    hey guys.. im trying to create a table in mysql in phpmyadmin

    was wondering weather is it right or wrong

    CREATE TABLE `User`(
    email varchar(32),
    fname varchar(32),
    lname varchar(32),
    pass varchar(32),
    sq varchar(128),
    sa varchar(128),
    );

    please help
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Next time give a more meaningful title to your thread as this one does not attract much attention. So I changed it.

    The last definition should not end with a comma. A comma suggests that there is more to come. So it must be
    Code:
    sa varchar(128)
    Ronald :cool:

    Comment

    Working...