Answer the question
In order to leave comments, you need to log in
How to select from three unrelated yii tables?
Hello, you need to make a selection from 3 tables together, they are not related, and they differ in structure by half. How to implement this using criteria or cdcommand?
I tried something like this, but the selection did not work ...
$users = Yii::app()->db->createCommand()
->select('*')
->from('char_quick_donate, char_user_donate, char_anonym_donate')
->queryAll();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question