Skip to content

Commit

Permalink
Update single row query function
Browse files Browse the repository at this point in the history
  • Loading branch information
ninbopa committed Sep 11, 2013
1 parent 7303bae commit 62f5b47
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 62f5b47

Please sign in to comment.