Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL with Store Procedure...

Status
Not open for further replies.

sppa

Programmer
Oct 2, 2002
5
0
0
ID
Dear All,

How to create Store Procedure on MySQL 5A ?
When I try to create the SP, but always error

"You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ....."

But it very simple like,

CREATE PROCEDURE test1(OUT)
BEGIN
USE Mysql;
SELECT * FROM db;
END

And how to execute from sqlquery analyzer(like SQL Server)..
 
try
Code:
CREATE PROCEDURE test1(OUT) 
BEGIN
   SELECT * FROM db;
END


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top