Jump to content

Mysql Stored Procs


Network_ninja

Recommended Posts

Hi everyone... I decided to use Mysql Stored Procs but i don't find a complete tutorial on how this things work.

But I already started creating one:

 

Here is my simple SP:

;
CREATE PROCEDURE GetAllProducts()
  Select * FROM products 
;

 

Question 1:

Whenever I use this piece of code CALL GetAllProducts(); it will give me an ERROR 1312: PROCEDURE stored_procs. GetAllProducts can't return a result set in the given context

 

Question 2:

How do i display the created stored procs again.. so that I can review the code or modify the code.

 

By the way I am using Mysql Control Center as my UI. Tnx in advance.

Link to comment
https://forums.phpfreaks.com/topic/241761-mysql-stored-procs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.