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 :

  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;   

Error : syntax error, unexpected '@', ':'

  SET @q = CONCAT ('Effects'), then 'Create a temporary table' engine = in the form of Maisam (select difference ', nm,' es Colonel Table 1) ');   

As a bonus - The index of your kernel columns.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -