I am migrating code from SQL Server to MemSQL. SQL Server allows me to put the name of a stored procedure into a variable, then call the stored procedure using the variable. Using MemSQL syntax, it would be like this:
DECLARE proc_name VARCHAR(100);
SELECT name_of_sp INTO proc_name FROM some_table;
CALL procname;
Is it possible to do this in MemSQL or do I need to use dynamic SQL?