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

Commit 986fdff

Browse files
author
Daniel Opitz
committed
Updated docs
1 parent 570bb2b commit 986fdff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/selects.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,21 @@ $users = $db->select()
130130
SELECT count(*) AS user_count, `status` FROM `payments` WHERE `status` <> 1 GROUP BY `status`;
131131
```
132132

133+
Using whereRaw:
134+
135+
```php
136+
$users = $db->select()
137+
->columns('id', 'username')
138+
->from('users')
139+
->whereRaw('status <> 1')
140+
->execute()
141+
->fetchAll();
142+
```
143+
144+
```sql
145+
SELECT `id`, username WHERE status <> 1 FROM `users`;
146+
```
147+
133148
Creating raw expressions with the function builder:
134149

135150
```php

0 commit comments

Comments
 (0)