mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 12:49:04 +08:00
@@ -109,7 +109,7 @@ When the tables are specified as an array, you may also use the array keys as th
|
|||||||
(if a table does not need alias, do not use a string key). For example,
|
(if a table does not need alias, do not use a string key). For example,
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$query->select('u.*, p.*')->from(['u' => 'user u', 'p' => 'post']);
|
$query->select('u.*, p.*')->from(['u' => 'user', 'p' => 'post']);
|
||||||
```
|
```
|
||||||
|
|
||||||
You may specify a sub-query using a `Query` object. In this case, the corresponding array key will be used
|
You may specify a sub-query using a `Query` object. In this case, the corresponding array key will be used
|
||||||
|
|||||||
Reference in New Issue
Block a user