mysql and or 查询遇到的坑

select   *  from   table   where m.is_delete = 0 and alow.user_type =3 and alow.is_delete = 0
        
       
           
                and (alow.user_uuid = "08b08c9c-11e3-11ea-965f-07"
                or alow.user_uuid in (select u.user_uuid FROM ccs_user u
                LEFT JOIN ccs_dept d on d.dept_uuid = u.dept_uuid
                where d.parent_uuid = "197128190300.dept_uuid = "1971900"))
          

发布了198 篇原创文章 · 获赞 23 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/stone_tomcate/article/details/103915532