The syntax for autoincrementing columns is unique to most databases.
for postgresql its:
create table test(name text, id serial);
the serial keyword is an alias for the autoincrement, int4, notnull stuff that you put in in most other dbs.
Someone else will have to fill in the blanks if you're running mysql, but if you search this forum, you'll find the answer.