Home
SQL / MySQL
Aggregate Functions
Backup Load
Command MySQL
Cursor
Data Type
Database
Date Time
Engine
Event
Flow Control
FullText Search
Function
Geometric
I18N
Insert Delete Update
Join
Key
Math
Procedure Function
Regular Expression
Select Clause
String
Table Index
Transaction
Trigger
User Permission
View
Where Clause
XML
Prepare from a variable : Variable Declaration « Procedure Function « SQL / MySQL
SQL / MySQL
Procedure Function
Variable Declaration
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