Ola
vc estando em transacao, acredito que pegue o que vc gravou
se vc usa o postgresql 8.4 vc pode utilizar
insert into tabela( campo1,campo2 ) values ('11','11') RETURNING
nomedocamposerial;
[]s
Luiz
----- Original Message -----
From: "Bruno Carneiro" <[email protected]>
To: <[email protected]>
Sent: Tuesday, October 13, 2009 3:33 PM
Subject: [pgbr-geral] SELECT CURRVAL, sempre retorna o ultimo?
Quero dizer,
- Eu gravo um registro
- Outro usuário grava um registro
- Eu faço SELECT CURRVAL
Então, eu vou conseguir pegar o ultimo registro inserido por mim? Ou vou
pegar o registro inserido pelo outro usuário?
--
View this message in context:
http://www.nabble.com/SELECT-CURRVAL%2C-sempre-retorna-o-ultimo--tp25878285p25878285.html
Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com.
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral