在OrientDb EmbededSet中不包含

时间:2016-04-15 14:21:51

标签: orientdb orientdb-2.1

尝试仅检索未支付电子商务网站的订单。

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

enter image description here

enter image description here

答案 1 :(得分:0)

试试这个:

SELECT * FROM orders_list
WHERE 'payed' NOT IN status

SELECT * FROM orders_list
WHERE status <> 'payed'

让我知道

希望有所帮助