The following MD () is my encapsulated method of extracting Medoo
MD()->debug()->get('items_want',['id'],[ 'uid'=>74, 'item_id'=>28, ]);
For example above, the output of SQL is actually:SELECT "id" FROM "items_want" WHERE "uid" = 74 "item_id" = 28 LIMIT 1
and
MD()->debug()->get('items_want',['id'],[ 'AND'=>[ 'uid'=>74, 'item_id'=>28, ] ])
will be able to output
SELECT "id" FROM "items_want" WHERE "uid" = 74 AND "item_id" = 28 LIMIT 1
Reply content:
The following MD () is my encapsulated method of extracting Medoo
MD()->debug()->get('items_want',['id'],[ 'uid'=>74, 'item_id'=>28, ]);
For example above, the output of SQL is actually:SELECT "id" FROM "items_want" WHERE "uid" = 74 "item_id" = 28 LIMIT 1
and
MD()->debug()->get('items_want',['id'],[ 'AND'=>[ 'uid'=>74, 'item_id'=>28, ] ])
will be able to output
SELECT "id" FROM "items_want" WHERE "uid" = 74 AND "item_id" = 28 LIMIT 1
Yes, because the relationship between and and or is handled, so this approach is more logical
Medoo multiple conditions must be used and, depending on his official website or source code