Re: [SQL] autoincrement

2001-10-25 Thread Aasmund Midttun Godal
SERIAL type (look it up in the docs). Regards, Aasmund PS. I may not be good at counting, but I have counted your two words 3 times and I still get 6. On Thu, 25 Oct 2001 23:09:32 +0300, Alexey Prohorenko <[EMAIL PROTECTED]> wrote: > How can I reproduce in PostgreSQL type structure fr

Re: [SQL] autoincrement

2001-10-25 Thread Bruce Momjian
Use SERIAL instead of AUTO_INCREMENT. > How can I reproduce in PostgreSQL type structure from MySQL: > INT NOT NULL PRIMARY KEY AUTO_INCREMENT > > ? > > To be more exact -- in two words: "how can I create autoincrement > field?" > > Thanks a lot. > > -- >

[SQL] autoincrement

2001-10-25 Thread Alexey Prohorenko
How can I reproduce in PostgreSQL type structure from MySQL: INT NOT NULL PRIMARY KEY AUTO_INCREMENT ? To be more exact -- in two words: "how can I create autoincrement field?" Thanks a lot. -- green [http://www.extrasy.net] --

Re: [SQL] AUTOINCREMENT--help

2001-01-01 Thread Brett W. McCoy
On Tue, 2 Jan 2001, Macky wrote: > Is there a function in SQL that does autoincrementing... http://www.postgresql.org/docs/faq-english.html#4.16.1 and http://www.postgresql.org/users-lounge/docs/7.0/postgres/sql-createsequence.htm will tell you how to do this. -- Brett

[SQL] AUTOINCREMENT--help

2001-01-01 Thread Macky
Is there a function in SQL that does autoincrementing... eg. CREATE TABLE (name varchar(40),num_id int); wherein num_id starts with 0 and then when ever I INSERT another record num_id goes 1 etc Thanks in advance