Notepad on-line
SELECT ROUTINE_NAME, ROUTINE_DEFINITIONFROM INFORMATION_SCHEMA.ROUTINESWHERE ROUTINE_DEFINITION LIKE '%foobar%'AND ROUTINE_TYPE='PROCEDURE'
select * from information_schema.routineswhere ROUTINE_DEFINITION LIKE '%foobar%'