pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: PostgreSQL <pgsql-sql@postgresql.org>
To: Pgadmin-Support <pgadmin-support@postgresql.org>
Subject: Alternative Serial
Date: Sun, 11 Mar 2007 11:20:33 -0300
Message-ID: <55c095e90703110720o78dfcfeai2b31bbadf17582b7@mail.gmail.com> (raw)

Hi list,

I know that serials must be created like this.

Create the Serial

Create a field table and reffers to the pre-created serial.

Now I noticed that it is possible to use the default value. I am almost
quite sure that this is an alternative way and non polite.

I would like to know if I am correct and what does it means:

nextval('mySerial_id'::regclass)

What is regclass ?

Regards ,
-- 
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox:http://br.mozdev.org/firefox/

view thread (5+ messages)  latest in thread

Message-ID: <55c095e90703110720o78dfcfeai2b31bbadf17582b7@mail.gmail.com>
Permalink:  ../55c095e90703110720o78dfcfeai2b31bbadf17582b7@mail.gmail.com/
Also on:    postgresql.org/message-id/55c095e90703110720o78dfcfeai2b31bbadf17582b7@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ezequias.rocha@gmail.com, pgadmin-support@postgresql.org
  Subject: Re: Alternative Serial
  In-Reply-To: <55c095e90703110720o78dfcfeai2b31bbadf17582b7@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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