Asf_Db_AbstractQueryBuilder::table


Description

public object table(string $name [, string $alias_name = ''])

Parameters

name

数据库字段名称

alias_name

别名

Return Values

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

Examples

Example #1

<?php
use Asf\Db;

$insert = Db::QBI();

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

$insert->clear();

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