Closed HASSANDL closed 6 years ago
Why don't just use [!~]
for NOT LIKE?
https://medoo.in/api/where (LIKE Condition section)
$database->select('users', '*', [
'OR' => [
'id[>]' => 2,
'AND' => [
'name[!~]' => ['AND' => ['%sd', '%sassd']]
]
]
]);
The output:
SELECT * FROM `users` WHERE (`id` > 2 OR ((`name` NOT LIKE '%sd' AND `name` NOT LIKE '%sassd')))
how handle this (NOT OR)?
$database->select('users', '*', [
'NOT OR' => [
'id[>]' => 2,
'AND' => [
'name' => ['AND' => ['%sd', '%sassd']]
]
]
]);
There is no NOT OR
.
Hello. I want using "OR NOT" in sql. example:
how handle in where clause Medoo? thanks.