~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/dynamic.rst

  • Committer: Monty Taylor
  • Date: 2010-10-25 18:26:50 UTC
  • mto: (1879.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1880.
  • Revision ID: mordred@inaugust.com-20101025182650-7k11plnoi78sy1gl
Split set_var.* into sys_var.* and set_var.*

Show diffs side-by-side

added added

removed removed

Lines of Context:
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";