i want to perform below query with Yii query builder
$sql = "select * from user where userid in (1,2,3,)"
pls help ..
您所需要的如下
$data = Yii::app()->db->createCommand()->select('*')->from('user')->where(array('in', 'userid', array(1, 2,3)))->queryAll();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.