[ library(dbi) | Reference Manual | Alphabetic Index ]

cursor_all_execute(++Cursor, +TupleList)

Executes the parametrised prepared SQL statement represented by Cursor, once for each tuple in TupleList.
A cursor handle
A list of tuples of parameter values matching the template for this cursor


Executes the parameterised prepared SQL statement represented by Cursor, previously prepared by session_sql_prepare/4 or session_sql_prepare_query/5. The statement is executed once for each tuple in TupleList, with the parameter values supplied by that tuple. The tuples are executed in the order they are in TupleList, and any results produced are discarded when the next tuple is executed.

Each tuple is a structure whose name and arity match the parameter template when Cursor was prepared, and the arguments give the values for the parameters for this execution, and must be compatible with the type specified by the template, except that an argument can be an uninstantiated variable, to denote a NULL value for the corresponding parameter.


(5) type error
Cursor is not a valid cursor handle
(5) type error
Type mismatch between parameter template specification for Cursor and actual tuple data
Error from DBMS while executing SQL associated with Cursor.
ParamTemplate not specified when Cursor was created

See Also

cursor_next_execute / 2, cursor_N_execute / 4, session_sql_prepare / 4, session_sql_prepare_query / 5