您好,欢迎访问一九零五行业门户网

yii 查询问题

$connection = yii::app()->db; $table = $connection->tableprefix.'insurance'; $sql = select insurance_id, insurance_urlname from $table where insurance_display='y' and insurance_status='a'; $command = $connection->createcommand($sql); $list = $command->execute();
$list  返回的是查询出来的条数
如何返回查询出来的结果集?
回复讨论(解决方案) execute (执行)
只用于无返回结果的场合
其它类似信息

推荐信息