Stupid 4 line code giving problem :(

Discussion in 'Databases' started by domainsurfer, Sep 6, 2007.

  1. #1
    cant get this really stupid code to work :(

     
    domainsurfer, Sep 6, 2007 IP
  2. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #2
    Hello,
    The int must to be before auto increment :)

    create table post_test
    (
    uid int auto_increment not null,
    author varchar(10),
    title varchar(40),
    content longtext,
    primary key(uid)
    )

    Best,
    Jakomo
     
    jakomo, Sep 6, 2007 IP