~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/dynamic.rst

  • Committer: Lee Bieber
  • Date: 2010-11-14 05:18:07 UTC
  • mfrom: (1921.4.12 catalogs)
  • Revision ID: kalebral@gmail.com-20101114051807-p69h40jbsn1byf84
Merge Brian - add execute with no return

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
You can also omit the variable and just insert the SQL directly:
11
11
 
12
12
EXECUTE "SELECT 1";
 
13
 
 
14
By adding WITH NO RETURN you can have EXECUTE then no errors will be
 
15
generated and no data will be returned by the execution of the statement.
 
16
 
 
17
If you want to launch the query in a separate session, you can do that with
 
18
the following:
 
19
EXECUTE "SELECT 1" CONCURRENT;
 
20
 
 
21
The query will run in a new session and will execute as the user that
 
22
launched it. It can be killed via KILL and the system limit on total number
 
23
of sessions will be enforced.