Function exec
Execute a one-off SQL command.
Use this method when you are not going to be using the same command repeatedly. It can be used with commands that don't produce a result set, or those that do. If there is a result set its existence will be indicated by the return value.
Any result set can be accessed vis Connection.getNextRow(), but you should really be using execSQLResult() or execSQLSequence() for such queries.
Prototype
ulong exec(
Connection conn,
string sql
);
Parameters
Name | Description |
---|---|
ra | An out parameter to receive the number of rows affected. |
Returns
true if there was a (possibly empty) result set.