Commit 887a9aa6 by Qiang Xue

Merge pull request #868 from ninbopa/doc

Update single row query function
parents 84dd19d7 62f5b47f
...@@ -88,7 +88,7 @@ When only a single row is returned: ...@@ -88,7 +88,7 @@ When only a single row is returned:
```php ```php
$command = $connection->createCommand('SELECT * FROM tbl_post WHERE id=1'); $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: When there are multiple values from the same column:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment