返回一列 (第一列) 如果该查询没有结果则返回空数组
$titles = Yii::$app->db->createCommand('SELECT title FROM post') ->queryColumn();