How to build Django queries to get list of data that satisfy many conditions?

前端 未结 0 929
迷失自我
迷失自我 2020-11-28 03:36

I am trying to get a list of user_id by executing such sqlite query.

SELECT
    u.user_id 
FROM
    users u 
WHERE
    u.role_id IN ( 1, 2 ) 
    AND ( SELECT         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题