MySQL Forums
Forum List  »  Stored Procedures

Re: How to get all the stored procedure names form MySql
Posted by: Roland Bouman
Date: August 19, 2005 03:29PM

Well, I don't know about .NET, but I do know how to write a query that does this for you. I bet you can run that query agains your .NET api. So, here we go:


select routine_schema -- database/schema wherein the object resides
, routine_name -- the name of the function/procedure
, routine_type -- PROCEDURE indicates a procedure, FUNCTION indicates a function (duh..)
, routine_definition -- code underlying the sp
, routine_comment -- some human readable comment on the routine
from information_schema.routines


You can add a where to restrict the output to the schema of interest:

where routine_schema = '<schema of interest>'

or the current schema/database

where routine_schema = schema()

see:

http://dev.mysql.com/doc/mysql/en/routines-table.html

for more info

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to get all the stored procedure names form MySql
6596
August 19, 2005 03:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.