从apply_jobs中选择*,其中appid如'%RAD-0001%'和job_id IN('41,48,49')按id asc排序

时间:2018-05-14 12:32:10

标签: php mysql mysqli

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

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

如果我只使用或类似查询,它可以正常工作。

2 个答案:

答案 0 :(得分:0)

试试这个:

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

在IN中使用分隔值

答案 1 :(得分:0)

试试这个,删除单个qoutes为整数值

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