mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Merge pull request #868 from ninbopa/doc
Update single row query function
This commit is contained in:
@@ -88,7 +88,7 @@ When only a single row is returned:
|
||||
|
||||
```php
|
||||
$command = $connection->createCommand('SELECT * FROM tbl_post WHERE id=1');
|
||||
$post = $command->query();
|
||||
$post = $command->queryOne();
|
||||
```
|
||||
|
||||
When there are multiple values from the same column:
|
||||
|
||||
Reference in New Issue
Block a user