php8.5
Home/ Manual/ uodbc / functions/ odbc_exec

odbc_exec

PHP function Edit on GitHub ✎

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

Directly execute an SQL statement

Description

odbc_exec(Odbc\Connection $odbc, string $query): Odbc\Result|false

Sends an SQL statement to the database server.

Parameters

odbc

Id

query

The SQL statement.

Return Values

Object-return if the SQL command was executed successfully, or false on error.

Changelog

VersionDescription
8.0.0flags was removed.

See Also

Source: reference/uodbc/functions/odbc-exec.xml · from the official PHP manual (php/doc-en)