|
|
Sponsor |
Re: Stored Functions: msg#00289db.postgresql.jdbc
* Yolanda Phillips (yphillips@xxxxxxxxxxxxxxxxxxx) wrote: > I'm wanting to do an insert, then if it was successfull the function should > return the id. This id is using a sequence.nextval(). How do I return the > new id? After the insert statement, run a new statement: SELECT curval('sequencename') This statement will return the id. Hope this helps, Anders -- Anders Hermansen YoYo Mobile as ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Stored Functions, Yolanda Phillips |
|---|---|
| Next by Date: | Re: Stored Functions, Dave Cramer |
| Previous by Thread: | Stored Functions, Yolanda Phillips |
| Next by Thread: | Re: Stored Functions, Dave Cramer |
| 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.
|