Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

return result set in SPs

 
   Database Forums (Home) -> mySQL RSS
Next:  developing a Object Oriented Database  
Author Message
Chagh




Joined: Aug 07, 2005
Posts: 2



(Msg. 1) Posted: Mon Aug 22, 2005 5:16 am
Post subject: return result set in SPs

hi all,
how can we have a select satement in an SP?(i want to return a result set from the SP). i want to migrate from SQL Server to MySQL and i don't know what to do with these SPs.
it can be done in MySQL client, but it gives the error:"procedure foo can't return a result set in the given context MySQL"
in the application.
can i set a cursor out put parameter and return it?(just like Oracle) or it has another solution?

and another question: is MyODBC 3.51 tested with MySQL 5.x? can we call an SP from Delphi via MyODBC? (i tried to do so (using ADO an a data provider for OLEDB) but i think somewhere in passing the call statement it had put {} around "call sp()" statement so that mysql returned an error about the syntax.)



Thanks in advane
Chagh

 >> Stay informed about: return result set in SPs 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
prefixing a query result - Is it possible within the sql statement to prefix with a piece of text? For example, if i had a table with a column firstname and lastname, and a sql statemtn like select firstname,lastname from tblnames could i have the sql return something like &qu...

checking "return type of sprintf" - Hello, I try to cross-compile mySql 5.0.18 on a suse linux machine to mipsel-linux. However, configure fails: CC=mipsel-linux-gcc LD=mipsel-linux-ld ./configure --prefix=/usr/downloads/mySQL5/mysql-5.0.18/prefix --without-server --host=mipsel-linux..

SQL Query: Return fields corresponding to comma separated .. - I'm attempting a query that gathers product data for a particular product id. One of the items is designer(s) which can be more than one. The product table has comma separated id's of the designers in the designers table (which has fields like: id,..

Compare record in two tables, return fields that don't mat.. - Does anyone know if there is an easy way to compare a row from table a, to a row in table b with the same structure/field names and return those fields which don't match? I have table_a storing the originally submitted applicant information, and table_b...

MySQL client crashes with segmentation fault on Red Hat Li.. - Hi all, I don't know what I'm missing here, but if anyone could help me out I'd really appreciate it. Basically, everything is fine, compiles, installs, server runs, but the interactive mysql client breaks. I have an IA64 Red Hat Linux Enterprise..
   Database Forums (Home) -> mySQL All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]