if one SQL is considered a stored process, then yes!
.. you can do with cursor and dynamic sql.
exec("select count(*) from " + @tableName)
.... type of item!
I'm sure mysql probably has embedded SQL or SP that will do this for you, I'm afraid I don't know what it is.