|
|
Choosing A Webhost: |
Re: dbproc + dynamic query result: msg#00187db.maxdb
Hi Felde, I wanted to create a dbproc in which I use the result of a dynamic query. I thought the dbproc should work as follows ( just example ):Try something like: CREATE DBPROC PREPTEST ( IN SZAM INTEGER, OUT RES VARCHAR ) AS VAR EXPRESSION1 INT; SELECT 5 FROM DBA.DUAL; FETCH INTO :EXPRESSION1; SET RES = EXPRESSION1; A second question too. Is it able to return a cursor created with the same method? What I mean:Close. Maybe this is what you are looking for: CREATE DBPROC PREPTEST1 ( IN SZAM INTEGER, OUT RES VARCHAR ) returns cursor AS $cursor = 'retcur'; declare :$cursor cursor for SELECT 5 FROM DBA.DUAL; Felde Norbert wrote: Hi, -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | AW: Migration with SDBUPD - cannot find DB instance, Florian Schmitz |
|---|---|
| Next by Date: | Re: dbproc + dynamic query result, edlef |
| Previous by Thread: | dbproc + dynamic query result, Felde Norbert |
| Next by Thread: | Re: dbproc + dynamic query result, edlef |
| 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
| advertise | OSDir is
an inevitable website.
|