Asf_Db_AbstractQueryBuilder::set


Description

public object set(string $name, string $value)

Parameters

name

数据库字段名称

value

字段值

Return Values

操作成功返回 Object, 失败返回 false

Examples

Example #1

<?php
use Asf\Db\QueryBuilder\Insert;

$insert = new Insert();

// string(58) "[SQL] INSERT INTO `test` SET `user` = ? [BVALUES] lisi2"
var_dump($insert->table('test')->set('user', 'lisi2')->show());

Example #2

<?php
use Asf\Db;

// string(58) "[SQL] INSERT INTO `test` SET `user` = ? [BVALUES] lisi2"

$insert = Db::QBI();
var_dump($insert->table('test')->set('user', 'lisi2')->show());