|
|
Sponsor |
Re: Access - ODBC - serial problem...: msg#00064db.postgresql.odbc
On Thursday 08 April 2004 17:44, Shachar Shemesh wrote: > Philippe Lang wrote: > > > >Is there a solution to that, except inserting records with PL-PGSQL, which > > I already do in some cases, by the way...? > > I would love it if one of the resident Postgres gurus could verify this, > but I think running "select currval('test_id_seq')" ought to do exactly > what you want in this case. It should tell you the most recent id > assigned by the sequence in your session. > > Can someone please verify that this command does not suffer races? currval() and nextval() are guaranteed safe. What this does mean is that you can end up with gaps in your sequence though. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Access - ODBC - serial problem..., Ray Aspeitia |
|---|---|
| Next by Date: | Re: Access - ODBC - serial problem..., Philippe Lang |
| Previous by Thread: | Re: Access - ODBC - serial problem..., Shachar Shemesh |
| Next by Thread: | Re: Access - ODBC - serial problem..., Michael Fork |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|