Execute an SQL statement

# Session::executeSql

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

Session::executeSql — Execute an SQL statement

### 説明

public mysql_xdevapi\Session::executeSql ( string `$statement` ) : Object

Execute an SQL statement, similar to executing the sql() and execute() methods.

### パラメータ

`statement`

  SQL statement to execute

### 返り値

An SqlStatementResult object on success, or throws an Exception if the SQL statement fails.

### 例

例1 mysql_xdevapi\Session::executeSql() example

`<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$session->executeSql("CREATE DATABASE addressbook");`