构成查询 SELECT DISTINCT
如果传的是字符串则构造出 SELECT DISTINCT(test
) as test
这样的查询(MySQL)
Database Module_Database_QueryBuilder::distinct( [ boolean $value = bool true ] )
参数列表
参数 类型 描述 默认值 $value
boolean
Enable or disable distinct columns bool true
Database
public function distinct($value = true)
{
$this->_builder['distinct'] = $value;
return $this;
}