Commit faee21e0 authored by Alexander Butenko's avatar Alexander Butenko Committed by GitHub

updated readme (#687)

updated readme
parent 687780a9
...@@ -490,7 +490,7 @@ $results = $db->get('users'); ...@@ -490,7 +490,7 @@ $results = $db->get('users');
// Gives: SELECT * FROM users WHERE id IN (1, 5, 27, -1, 'd'); // Gives: SELECT * FROM users WHERE id IN (1, 5, 27, -1, 'd');
``` ```
OR CASE OR CASE:
```php ```php
$db->where ('firstName', 'John'); $db->where ('firstName', 'John');
$db->orWhere ('firstName', 'Peter'); $db->orWhere ('firstName', 'Peter');
...@@ -505,6 +505,13 @@ $results = $db->get("users"); ...@@ -505,6 +505,13 @@ $results = $db->get("users");
// Gives: SELECT * FROM users where lastName IS NOT NULL // Gives: SELECT * FROM users where lastName IS NOT NULL
``` ```
LIKE comparison:
```php
$db->where ("fullName", 'John%', 'like');
$results = $db->get("users");
// Gives: SELECT * FROM users where fullName like 'John%'
```
Also you can use raw where conditions: Also you can use raw where conditions:
```php ```php
$db->where ("id != companyId"); $db->where ("id != companyId");
......
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