-5

SELECT a.*, c.category_name FROM products a JOIN product_categories b ON a.id = b.product_id JOIN categories c ON b.category_id = c.id WHERE a.store_id = 20

4

1 回答 1

0

你可以试试这个:

$data = Yii::app()->db->createCommand('Your query here')->queryAll();
var_dump($data);
于 2013-07-15T17:41:22.803 回答