What is the MySQL command to view the definition of a stored procedure or function, similar to sp_helptext in Microsoft SQL Server?
sp_helptext
I know that SH
SH
You can use table proc in database mysql:
mysql> SELECT body FROM mysql.proc WHERE db = 'yourdb' AND name = 'procedurename' ;
Note that you must have a grant for select to mysql.proc:
mysql> GRANT SELECT ON mysql.proc TO 'youruser'@'yourhost' IDENTIFIED BY 'yourpass' ;