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.

參數(shù)

odbc

ODBC 連接標(biāo)識符,詳見 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.

參見