~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/dynamic.rst

  • Committer: Brian Aker
  • Date: 2010-10-27 20:22:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101027202226-72a4nwhfz5c6srgu
Update documentation.

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";