Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 8e820d7

Browse files
author
Daniel Opitz
committed
Updated docs
1 parent b8c63ba commit 8e820d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/selects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ Select columns with alias:
9797
$db->select()->columns('first_name AS firstName', 'last_name AS lastName', 'tablename.fieldname as fieldName');
9898
```
9999

100-
Add multiple columns in a different time:
100+
Add fields one after another:
101101

102102
```php
103103
$query = $db->select()->columns('first_name')->from('users');
104104
$query->columns('last_name', 'email');
105105
```
106106

107107
```sql
108-
SELECT `first_name`,`last_name`,`email` AS `firstName` FROM `users`;
108+
SELECT `first_name`,`last_name`,`email` FROM `users`;
109109
```
110110

111111
#### Raw Expressions

0 commit comments

Comments
 (0)