1. How to create the stored procedures in mysql and it will be write on where?2. Difference between SQL stored procedures, MYSQL stored procedures, SQL Server stored procedures?

Showing Answers 1 - 2 of 2 Answers

umapathi.b

  • Jul 24th, 2010
 

It is just same as creating procedure in Oracle.  The only difference is with the syntax.

DROP PROCEDURE IF EXISTS xyz;

eg:
CREATE PROCEDURE xyz ( a int,b char,c varchar)
BEGIN
SELECT now();
SELECT current_date;
END

We can see all the procedure names and the code by using this query.

SELECT * FROM mysql.proc ;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions