Command.sql - multiple declarations
- Function Command.sql
- Function Command.sql
Function Command.sql
Set a new SQL command.
This can have quite profound side effects. It resets the Command to an initial state. If a query has been issued on the Command that produced a result set, then all of the result set packets - field description sequence, EOF packet, result rows sequence, EOF packet must be flushed from the server before any further operation can be performed on the Connection. If you want to write speedy and efficient MySQL programs, you should bear this in mind when designing your queries so that you are not requesting many rows when one would do.
Prototype
const(char)[] sql(
const(char)[] sql
) @property;
Parameters
Name | Description |
---|---|
sql | SQL command string. |
Function Command.sql
Get the current SQL for the Command
Prototype
const(char)[] sql() pure nothrow @property const;