Session::sql
(No version information available, might only be in Git)
Session::sql — Create SQL query
说明
   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();
?>
  +添加备注
  
 用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mysql-xdevapi-session.sql.php