1878.5.4
by Brian Aker
Update documentation. |
1 |
Dynamic SQL
|
2 |
========
|
|
3 |
||
4 |
In Drizzle you can use the EXECUTE command along with user defined variables |
|
5 |
to create SQL in a dynamic manner on the server. An exmaple of this is: |
|
6 |
||
7 |
SET @var= "SELECT 1"; |
|
8 |
EXECUTE @var; |
|
9 |
||
10 |
You can also omit the variable and just insert the SQL directly: |
|
11 |
||
12 |
EXECUTE "SELECT 1"; |