Re: [HACKERS] Query in SQL statement

2005-09-30 Thread Jim C. Nasby
On Thu, Sep 29, 2005 at 09:28:38PM +0800, Christopher Kings-Lynne wrote: > > >CREATE SEQUENCE ai_id; > >CREATE TABLE badusers ( > > id int DEFAULT nextval('ai_id') NOT NULL, > > UserName varchar(30), > > Date datetime DEFAULT '-00-00 00:00:00' NOT NULL, > > Reason varchar(200), > > Admin

Re: [HACKERS] Query in SQL statement

2005-09-29 Thread Christopher Kings-Lynne
CREATE SEQUENCE ai_id; CREATE TABLE badusers ( id int DEFAULT nextval('ai_id') NOT NULL, UserName varchar(30), Date datetime DEFAULT '-00-00 00:00:00' NOT NULL, Reason varchar(200), Admin varchar(30) DEFAULT '-', PRIMARY KEY (id), KEY UserName (UserName), KEY Date (Date) );

Re: [HACKERS] Query in SQL statement

2005-09-29 Thread Obe, Regina DND\\MIS
I think this question may be more appropriate for [EMAIL PROTECTED] Anyrate for the below. Sounds like you maybe already have a table or sequence called ai_id; Try doing a DROP SEQUENCE ai_id; First Also if you plan to use this sequence only for this table it would be better to use serial8 whi