[GENERAL] What's wrong with this SQL?

2006-05-09 Thread Adam
I'm trying to create a table and I'm getting this error: SQL error: ERROR: syntax error at or near ( at character 39 In statement: CREATE TABLE users (user_ID SERIAL(12), first_name character varying(40) NOT NULL, last_name character varying(40) NOT NULL, password character

Re: [GENERAL] What's wrong with this SQL?

2006-05-09 Thread Dann Corbit
PROTECTED] [mailto:pgsql-general- [EMAIL PROTECTED] On Behalf Of Adam Sent: Tuesday, May 09, 2006 9:06 PM To: pgsql-general@postgresql.org Subject: [GENERAL] What's wrong with this SQL? I'm trying to create a table and I'm getting this error: SQL error: ERROR: syntax error

Re: [GENERAL] What's wrong with this SQL?

2006-05-09 Thread Tom Lane
Adam [EMAIL PROTECTED] writes: I'm trying to create a table and I'm getting this error: ERROR: syntax error at or near ( at character 39 In statement: CREATE TABLE users (user_ID SERIAL(12), SERIAL doesn't take a parameter. regards, tom lane

Re: [GENERAL] What's wrong with this SQL?

2006-05-09 Thread Chris
Adam wrote: I'm trying to create a table and I'm getting this error: SQL error: ERROR: syntax error at or near ( at character 39 In statement: CREATE TABLE users (user_ID SERIAL(12), first_name character varying(40) NOT NULL, last_name character varying(40) NOT NULL,

Re: [GENERAL] What's wrong with this SQL?

2006-05-09 Thread John DeSoi
On May 10, 2006, at 12:06 AM, Adam wrote: CREATE TABLE users (user_ID SERIAL(12), first_name character varying(40) NOT NULL, last_name character varying(40) NOT NULL, password character varying(16) NOT NULL, email character varying (100) NOT NULL, privilege integer(2) NOT NULL, PRIMARY KEY

Re: [GENERAL] What's wrong about this sql statement?

2001-08-31 Thread Arne Weiner
Corn wrote: There is a comma missing. The Statement must be CREATE TABLE usersright ( userid INTEGER NOT NULL, rightid INTEGER NOT NULL, allow BOOLEAN NOT NULL DEFAULT FALSE, ^^^ CONSTRAINT pk_usersright PRIMARY KEY (userid, rightid) );