Re: About auto_increment

From: James Neff <jneff(at)tethyshealth(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: About auto_increment
Date: 2007-01-02 16:00:23
Message-ID: 459A8197.1040603@tethyshealth.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Tethys Health Ventures
4 North Park Drive, Suite 203
Hunt Valley, MD 21030

office: 410.771.0692 x103
cell: 443.865.7874

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-01-02 16:04:02 Re: Replacing all CHAR colums with VARCHAR
Previous Message Raymond O'Donnell 2007-01-02 15:56:10 Re: Geographical redundancy