Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the command text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SQL | 2.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Command | The command reference number gained with SQL.NewCommand. | $Command | |
CommandText | A string that represents command text string (an SQL statement or a stored procedure name). | "SELECT * FROM MyTable" | |
CommandType | Type of command. Can be CmdUnknown, CmdSQLStmt, CmdSQLStmtRaw or CmdStoredProc. CmdUnknown is default. | "CmdSQLStmtRaw" | Optional |
Returns "OK" or error message.
CmdUnknown | Command type is not defined. Library will detect command type automatically when needed. |
CmdSQLStmt | Command is an SQL statement. |
CmdSQLStmtRaw | Command is an SQL statement that mustn't be interpreted by SQLAPI++. |
CmdStoredProc | Command is a stored procedure or a function. |
This function is free to use.
Created 18th August 2014, last changed 13th January 2015