Re: [GENERAL] data type "serial"

1999-09-22 Thread Michael Simms
> > > > > > > So how do you store something in data type serial? > > > I've created the column but everytime I attempt to do an update I get > > > back the error message that I can't store a duplicate key. > > > > > > table_col_seq.last_value = 1 > > > increment = 1 > > > maxvalue = 2billion s

Re: [GENERAL] data type "serial"

1999-09-22 Thread Charles Tassell
If you have this table: create table testing ( id serial, datatext, md int ); You would use: insert into testing (data, md) values ('my_data', 12); insert into testing (data, md) values ('more data', 15); The key part is that you don't specify the serial f

Re: [GENERAL] data type "serial"

1999-09-22 Thread Teodor Cimpoesu
Michael wrote: > > > > > > > So how do you store something in data type serial? > > > I've created the column but everytime I attempt to do an update I get > > > back the error message that I can't store a duplicate key. > > > > > > table_col_seq.last_value = 1 > > > increment = 1 > > > maxvalue

Re: [GENERAL] data type "serial"

1999-09-22 Thread Michael
> > > > So how do you store something in data type serial? > > I've created the column but everytime I attempt to do an update I get > > back the error message that I can't store a duplicate key. > > > > table_col_seq.last_value = 1 > > increment = 1 > > maxvalue = 2billion something > > > > I

Re: [GENERAL] data type "serial"

1999-09-22 Thread Michael Simms
> > So how do you store something in data type serial? > I've created the column but everytime I attempt to do an update I get > back the error message that I can't store a duplicate key. > > table_col_seq.last_value = 1 > increment = 1 > maxvalue = 2billion something > > I've tried storing 1,