Skip to content

Commit

Permalink
Merge pull request yiisoft#868 from ninbopa/doc
Browse files Browse the repository at this point in the history
Update single row query function
  • Loading branch information
qiangxue committed Sep 11, 2013
2 parents 84dd19d + 62f5b47 commit 887a9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/database-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 887a9aa

Please sign in to comment.