temp tables - MySQL: Syntax error, unexpected '@', expecting ':' -
I want to create a temp table dynamically I am passing the column name as a parameter for the stored function .
Example : Error : syntax error, unexpected '@', ':' As a bonus - The index of your kernel columns.
DELIMITER $$ create process sptemp (IN nm varchar (50)) BEGIN @seta q q = a concat (' Use the temporary table; // select error here; ',' Select '', 'Table 1 from AS Colonel'); PREPAREÂ da FROMA @q; EXECUTEÂ d; DEALLOCATE Ready D; END $$ DELIMITER;
SET @q = CONCAT ('Effects'), then 'Create a temporary table' engine = in the form of Maisam (select difference ', nm,' es Colonel Table 1) ');
Comments
Post a Comment