-
Notifications
You must be signed in to change notification settings - Fork 0
execute
jeremywinters edited this page Apr 15, 2017
·
2 revisions
description:
execute a SQL statement(s) following the tag.
parameters:
- optional - variable name to store rows_affected
behavior:
- every execute stores (and overwrites) 'last_statement_rows_affected' variable, but this behavior may be inconsistent when running multiple SQL statements
examples:
/*-execute-*/
set session autocommit to off;
/*-execute-*/
set time zone to 'UTC';
/*-execute-*/
create table if not exists public.test(x integer);
/*-execute first_insert-*/ --this example stores rows_affected in variable named 'first_insert'
insert into public.test values (1);
- assign
- assign_result
- execute
- execute_if
- test
- exit_if
- exit_step_if
- recordset
- remove_recordset
- iterate
- on_error
Configuration
-
Command Reference