Can I bind non quoted params into query using Yii CDbCommand
?
I try something like this
$sql = "INSERT :sourceTable SELECT * FROM :destTable GROUP BY :column1, :column2";
$params = array(
':sourceTable' => 'source_table_name'
...
);
Yii::app()->db->createCommand($sql)->execute($params);
but get an error, because Yii param binder adds single quotes on table names and my query brokes. Is there a way to bind Yii param without quotes?
Thanks