mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
改进Query类
This commit is contained in:
@@ -786,14 +786,26 @@ class Query
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定数据表
|
||||
* 指定默认数据表
|
||||
* @access public
|
||||
* @param string $table 表名
|
||||
* @return $this
|
||||
*/
|
||||
public function setTable($table)
|
||||
{
|
||||
$this->table = $table;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定当前操作的数据表
|
||||
* @access public
|
||||
* @param string $table 表名
|
||||
* @return $this
|
||||
*/
|
||||
public function table($table)
|
||||
{
|
||||
$this->table = $table;
|
||||
$this->options['table'] = $table;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user