尝试仅检索未支付电子商务网站的订单。
SELECT * FROM orders_list
WHERE status CONTAINS (type IN ['payed'])
AND status *not* CONTAINS (type IN ['payed'])
或
SELECT * FROM orders_list
WHERE status CONTAINS (type IN ['payed'])
AND status CONTAINS (type *not* IN ['payed'])
我如何进行此查询?
由于
2 个答案:
答案 0 :(得分:1)
You can use
SELECT * FROM orders_list
WHERE status CONTAINSALL (type NOT IN ['payed'])
Hope it helps.
UPDATE
I tried with this structure


答案 1 :(得分:0)
试试这个:
SELECT * FROM orders_list
WHERE 'payed' NOT IN status
或
SELECT * FROM orders_list
WHERE status <> 'payed'
让我知道
希望有所帮助