|
|
Choosing A Webhost: |
dbproc + dynamic query result: msg#00183db.maxdb
Hi, 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 ): CREATE DBPROC PREPTEST ( IN SZAM INTEGER, OUT RES VARCHAR ) AS VAR QI VARCHAR(100); SET QI = 'SELECT 5 FROM DBA.DUAL '; EXECUTE QI; FETCH INTO :RES; But it dous not. I tried to create it different ways but I had not found the solution. Dous anybody know the solution? A second question too. Is it able to return a cursor created with the same method? What I mean: CREATE DBPROC PREPTEST ( IN SZAM INTEGER, OUT RES VARCHAR ) returns cursor AS VAR QI VARCHAR(100); $cursor = 'retcur'; SET QI = 'declare :$cursor cursor for SELECT 5 FROM DBA.DUAL '; EXECUTE QI; system: winXP maxdb 7.5.00.05 Thanks, Norbert -- 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: | Re: Crash in PHP Module: More Info, John Singleton |
|---|---|
| Next by Date: | Porting from Oracle, David Radcliffe @ Northampton |
| Previous by Thread: | PHP Module and Stored Procedures, John Singleton |
| Next by Thread: | Re: dbproc + dynamic query result, John Singleton |
| 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.
|