Session::sql
(No version information available, might only be in Git)
Session::sql — Execute SQL query
Beschreibung
Create a native SQL statement. Placeholders are supported using the native "?" syntax.
Use the execute
method to execute the SQL statement.
Parameter-Liste
-
query
-
SQL statement to execute.
Rückgabewerte
An SqlStatement object.
Beispiele
Beispiel #1 mysql_xdevapi\Session::sql() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$session->sql("CREATE DATABASE addressbook")->execute();
?>