Statement on glibc/iconv Vulnerability

Session::sql

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

Session::sqlSQLクエリを作成する

説明

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

ネイティブなSQLステートメントを作成します。 プレースホルダーはネイティブな "?" を使ってサポートされます。 SQLステートメントを実行するには、execute メソッドを使ってください。

パラメータ

query

実行するSQLステートメント

戻り値

SqlStatement オブジェクトを返します。

例1 mysql_xdevapi\Session::sql() の例

<?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