Is there a 'not in' equivalent in GORM?

前端 未结 5 958
我寻月下人不归
我寻月下人不归 2021-02-15 10:21

Is this possible to convert in createCriteria()?

SELECT * FROM node WHERE (node.type = \'act\' AND nid NOT IN (SELECT nid FROM snbr_act_community)) LIMIT 10
         


        
5条回答
  •  囚心锁ツ
    2021-02-15 11:10

    Just remembering: in this case you don't have to use parenthesis and you can use inList, for example:

    not { inList 'age',[18..65] }
    

提交回复
热议问题