PHP 8.4.0 RC4 available for testing

Session::sql

(No version information available, might only be in Git)

Session::sqlCreate SQL query

Опис

public mysql_xdevapi\Session::sql(string $query): mysql_xdevapi\SqlStatement

Create a native SQL statement. Placeholders are supported using the native "?" syntax. Use the execute method to execute the SQL statement.

Параметри

query

SQL statement to execute.

Значення, що повертаються

An SqlStatement object.

Приклади

Приклад #1 mysql_xdevapi\Session::sql() example

<?php
$session
= mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$session->sql("CREATE DATABASE addressbook")->execute();
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top