Log in Register now

YII selection from a database some fields

$command = Yii::app()->db->createCommand();
$surls = $command->select('db_field1', 'db_field1')->from('table_name')->where("WHERE 1")->queryAll();

comments (0)

Only registered users can add comments. Please, Login or Register.