Prepare from a variable : Variable Declaration « Procedure Function « SQL / MySQL






Prepare from a variable

     

SET @SQL_STATEMENT = 'SELECT * FROM TEAMS';

PREPARE S1 FROM @SQL_STATEMENT

   
    
    
    
    
  








Related examples in the same category

1.Declare INTEGER variable in procedure
2.Set and create user variable