代码之家  ›  专栏  ›  技术社区  ›  Jaleel Qamar

从applies\u jobs中选择*,其中appid(如''%RAD-0001%')和job\u id(按id asc排序)('41,48,49')

  •  -2
  • Jaleel Qamar  · 技术社区  · 6 年前

    使用此查询获取空查询。数据库中有对接数据

     select * from applies_jobs where appid like '%RAD-0001%' and  job_id IN ('41,48,49') order by id asc
    

    如果我只在或喜欢的查询中使用它,它工作得很好。

    2 回复  |  直到 6 年前
        1
  •  0
  •   Pawel Szalucki    6 年前

    尝试以下操作:

    select * from applies_jobs where appid like '%RAD-0001%' and  job_id IN ('41','48','49') order by id asc
    

    在使用中分隔的值

        2
  •  0
  •   Mani Nagarajan    6 年前

    尝试此操作,删除整数值的单个qoutes

        select * from applies_jobs where appid like '%RAD-0001%' and  job_id IN (41,48,49) order by id asc