|
|
Sponsor |
Re: Stored procedures/functions that can return recordsets...: msg#00193db.postgresql.jdbc
"Peter Adamek Jr." <peter.adamek@xxxxxxxxxxx> writes: > I am writing this to see if anyone has been able to successfully run a > stored procedure (although it is probably still called a function) via > Java (using a Callable Statement) and have it return a recordset (that > is multiple columns and multiple rows). If so, I would appreciate it if > you could post a short example, both of the stored procedure and the > Java code used to access it. If you had checked the archives you could have established that this has not been done yet: it is possible to return record sets to java code, but not via a CallableStatement. I have written a patch that allows PostgreSQL to do that. I'll send it to you if you want. > I have looked through the 7.3 documentation at the following link, but I > have not found any references to this functionality. > > http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/ > > I suspect that even in PostgreSQL version 7.3 no such thing as stored > procedures exist - I suspect it was a misquote and the article is > referring to functions. Stored procedures, stored functions... all the same. The generic term for imperative code executed within the database server is "stored proc". PostgreSQL's implementation of stored procs can return only one value. Nic ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Stored procedures/functions that can return recordsets..., Peter Adamek Jr. |
|---|---|
| Next by Date: | Re: updatable (J2EE) resultsets, Kris Jurka |
| Previous by Thread: | Stored procedures/functions that can return recordsets..., Peter Adamek Jr. |
| Next by Thread: | Re: Stored procedures/functions that can return recordsets..., Remigius Stalder |
| 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.
|