Browse Source

Update single row query function

tags/2.0.0-beta
ninbopa 11 years ago
parent
commit
62f5b47f1d
  1. 2
      docs/guide/database-basics.md

2
docs/guide/database-basics.md

@ -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:

Loading…
Cancel
Save