diff --git a/readme.md b/readme.md index 45fa2aed..eaf5e62f 100644 --- a/readme.md +++ b/readme.md @@ -490,7 +490,7 @@ $results = $db->get('users'); // Gives: SELECT * FROM users WHERE id IN (1, 5, 27, -1, 'd'); ``` -OR CASE +OR CASE: ```php $db->where ('firstName', 'John'); $db->orWhere ('firstName', 'Peter'); @@ -505,6 +505,13 @@ $results = $db->get("users"); // 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: ```php $db->where ("id != companyId");