From: Sidnei da S. <si...@pl...> - 2003-10-31 15:17:42
|
Hello folks, I was needing a way to figure out the next id that will be generated by an insert using Postgres, and stumbled over queryInsertID. From what I can see, that one gives the last inserted id. Now the question is: There is a easy way to get the *next id*? It seems i need to do a CREATE SEQUENCE if the table was just created/doesnt exist yet, but Im not the Postgres guru here, so I'm not sure. Clues? []'s -- Sidnei da Silva <si...@aw...> dreamcatching :: making your dreams come true http://awkly.org Bus error -- driver executed. |