Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
int exec_row(statement[,host-variable,...]) string statement expr host-variable
statement | specifies the SQL statement to execute.
|
host-variable | (optional) specifies the bind variables (either
as variables or hard-coded) for the statement. If
host-variable is a list, all host-variable references are
resolved from the list.
If exec_proc() isn't specified, the function escapes to the window trigger error trap (TRIMapp) operating system command shell (TRIMreport or stand-alone TRIMpl systems). |
{ . exec_row("DELETE FROM staff WHERE :1 = ",list_curr(p.wl,0)); . }
Deletes several rows from the database.
{ list dl; /* dl has 1 column */ exec_row("DELETE FROM staff WHERE :1 = ",dl); }