I have procedure MY_OWN_PROC with parameters _DATE, _ID and its body is:
BEGIN
SELECT h.*
FROM `my` h
WHERE
h.DATE>=_DATE /*comment*/;
END
I have the same procedure in databases db1 - db100. Now I would like to update body of procedure in all databases at once (e.g. I want to replace "h.DATE<_DATE" part or the whole body). How can this be done with mysql by native sql command, or by adminer (I am using adminer on the server) or by php script please?
Update: First my thought - I will make sql command for the 100 databases (copy/paste) and the copy this huge command to adminer and run it.