I'm trying to insert a table into my MySQL data base wit the following command:
server:/home/webpage$ mysql -ppassword database < table.sql
The Error I get is this:
ERROR 1064 at line 1: You have an error in your SQL syntax near 'unique default
nextval('commentidtest'),
commentpage varchar(255),
poster' at line 2
My table.sql statement looks like this:
create table comment (
comment_id int primary key unique default nextval('comment_id_test'),
comment_page varchar(255),
poster_email varchar(50),
poster_name varchar(60),
subject varchar(60),
comment text,
date abstime,
poster_notify bool
);
Can anyone tell me what's wrong with my syntax?
Thanks for the help.