![]() |
Empower C |
install tutorials examples documentation license about |
|
11.0.11 released on Jul 25, 2022 |
affected-rows#<query name> [ to [ define ] <variable> ]
define-query#my_query="insert into employee (firstName, lastName) values ('sergio', 'fernandez'), ('jerry', 'lopez')"
run-query#my_query@db
end-query
// Define variable
affected-rows#my_query to define aff_rows
if (aff_count!=2) {
@<div>Number of rows affected is not 2, but rather it is <<pf-out "%lld", aff_count>></div>
}
To use an existing integer variable:num aff_count;
affected-rows#my_query to aff_count