Re: [GENERAL] About auto_increment

2007-01-03 Thread Yesh
Hi, Thankx guys I am now able to increment that field by using serial. Richard Huxton wrote: > > Yesh wrote: >> Hi, >> >> I need to know how to increment a primary key field automatically in >> run >> time. > > Not sure precisely what you want to know, but read up on the SERIAL > type, se

Re: [GENERAL] About auto_increment

2007-01-02 Thread Ragnar
On mán, 2007-01-01 at 21:21 -0800, Yesh wrote: > I need to know how to increment a primary key field automatically in run > time. Will SERIAL do what you want? gnari ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send

Re: [GENERAL] About auto_increment

2007-01-02 Thread James Neff
Yesh wrote: Hi, I need to know how to increment a primary key field automatically in run time. If you use the "serial" data type, the database does this for you automatically and you don't have to worry about it. Is this the data type your using? -- James Neff Technology Specialist T

Re: [GENERAL] About auto_increment

2007-01-02 Thread Raymond O'Donnell
On 1 Jan 2007 at 21:21, Yesh wrote: > I need to know how to increment a primary key field automatically in > run time. Use type SERIAL as your primary key - here is the relevant page in the docs: http://www.postgresql.org/docs/8.2/static/datatype- numeric.html#DATATYPE-SERIAL HTH, --Ray. -

Re: [GENERAL] About auto_increment

2007-01-02 Thread Richard Huxton
Yesh wrote: Hi, I need to know how to increment a primary key field automatically in run time. Not sure precisely what you want to know, but read up on the SERIAL type, sequences, nextval() and currval(). -- Richard Huxton Archonet Ltd ---(end of broadcast)---

[GENERAL] About auto_increment

2007-01-02 Thread Yesh
Hi, I need to know how to increment a primary key field automatically in run time. -- View this message in context: http://www.nabble.com/About-auto_increment-tf2906530.html#a8120183 Sent from the PostgreSQL - general mailing list archive at Nabble.com. ---(end of b