odbc_exec

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_execDirectly execute an SQL statement

说明

odbc_exec(resource $odbc, string $query): resource|false

Sends an SQL statement to the database server.

参数

odbc

ODBC 连接标识符,详见 odbc_connect()

query

The SQL statement.

返回值

Returns an ODBC result identifier if the SQL command was executed successfully, or false on error.

更新日志

版本 说明
8.0.0 flags was removed.

参见