Browse Source

Merge pull request #868 from ninbopa/doc

Update single row query function
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
887a9aa66a
  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