pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: how to create field auto increas value
3+ messages / 3 participants
[nested] [flat]

* Re: how to create field auto increas value
@ 2007-03-20 02:19  Phillip Smith <phillip.smith@weatherbeeta.com.au>
  parent: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
  1 sibling, 0 replies; 3+ messages in thread

From: Phillip Smith @ 2007-03-20 02:19 UTC (permalink / raw)
  To: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>; +Cc: pgsql-admin

Look at the "serial" data type in the documentation.
~p

On Tue, 2007-03-20 at 09:49 +0700, gunartha.nyoman wrote:
> Dear All,
>  
> I am trying to create table which have one field auto increas value
> like autonumber in ms access.
> My question is how to create this auto increas field.
>  
> Thank a lot for your attention
> 
> Regards,
> Nyoman/Bali
> 
>  
>  

Attachments:

  smime.p7s (application/x-pkcs7-signature, 2.1K) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to create field auto increas value
@ 2007-03-20 02:29  Joshua D. Drake <jd@commandprompt.com>
  parent: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
  1 sibling, 0 replies; 3+ messages in thread

From: Joshua D. Drake @ 2007-03-20 02:29 UTC (permalink / raw)
  To: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>; +Cc: pgsql-admin

gunartha.nyoman wrote:
> Dear All,
> 
> I am trying to create table which have one field auto increas value like autonumber in ms access.
> My question is how to create this auto increas field.

create table foo (id serial);

also see currval(), nextval()

Sincerely,

Joshua D. Drake

> 
> Thank a lot for your attention
> 
> Regards,
> Nyoman/Bali
> 
> 
> 


-- 

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* how to create field auto increas value
@ 2007-03-20 02:49  gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
  0 siblings, 2 replies; 3+ messages in thread

From: gunartha.nyoman @ 2007-03-20 02:49 UTC (permalink / raw)
  To: pgsql-admin

Dear All,

I am trying to create table which have one field auto increas value like autonumber in ms access.
My question is how to create this auto increas field.

Thank a lot for your attention

Regards,
Nyoman/Bali

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-03-20 02:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20 02:49 how to create field auto increas value gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
2007-03-20 02:19 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-20 02:29 ` Joshua D. Drake <jd@commandprompt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox