Asf_Db_AbstractQueryBuilder::exec

只有连接数据库时, 才生效, 执行完成之后, 会清理SQL


Description

public bool exec(bool $flags = false)

Parameters

flags

当使用类 Asf_Db_QueryBuilder_Select

当使用类 Asf_Db_QueryBuilder_Insert, Asf_Db_QueryBuilder_UpdateQueryBuilder, Asf_Db_QueryBuilder_DeleteQueryBuilder

Return Values

失败返回 false

Examples

Example #1

<?php
// string(37) "[SQL] select * from test where cm = 1"

use Asf\Db;

$select = Db::QBS();
$select->cm('* from test where cm = 1');
$select->exec();