Directly execute an SQL statement

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.

參見

Leave a Reply

Your email address will not be published. Required fields are marked *