| From: | gustavo halperin <ggh(dot)develop(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | SEQUENCE primary key |
| Date: | 2007-02-13 19:52:05 |
| Message-ID: | 45D216E5.1020007@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello
I have a question, if I have a table with a SEQUENCE primary key, that
obviously, I doesn't give in each new row inserted. For example if the
table locks:
CREATE SEQUENCE id_seq;
CREATE TABLE table (
id integer DEFAULT nextval('id_seq') CONSTRAINT table_id
PRIMARY KEY,
arg1 integer,
arg2 integer
)
How can I know which id receive each new row. I mean,
<http://ultralingua.com/onlinedictionary/index.html?action=define&ignoreaccents=on&wholewords=on&searchtype=stemming&text=sudden&service=english2spanish>
suddenly I insert one row (*) with the arg1 and arg2 . So ..., there
are something that I receive back ?? Some pointer, something? There are
any way to know which number receive my row ?
Thank you,
Gustavo
(*) This process can be multi-thread. In my case I use the libraries
with the wxWidget project with the class wxDbTable.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ted | 2007-02-13 19:53:25 | Re: Having a problem with my stored procedure |
| Previous Message | Laura McCord | 2007-02-13 19:51:01 | Re: Having a problem with my stored procedure |