-- mysql语句问题:为什么查询子句的结果(a,b)不能在IN子句中不起作用呢? 百思不得解。 select * from orders where productid in ((select productid from products)) test1.sql(示例数据) 解决方法1:很麻烦,没人愿意这样干的 https://www.cnblogs.com/waban/p/5196267.html call splitString((select productid from products),","); select * from orders where productid in (select * from tmp_split) 解决方法2: select * from orders where find_in_set(productid,(select productid from products)) |