日期:2014-05-16  浏览次数:20796 次

php下执行查询奇怪的问题;
$sql = "select * from user_search_detail where user_id in (430,452,443,452) order by user_id desc";
echo $sql;
$record = mysqli_query($conn,$sql);
这样一个查询为什么没有返回值;
在命令行下查询正常;
难道mysqli接口不支持where id in()字句?

------解决方案--------------------
发了两个贴。
------解决方案--------------------
直接到MYSQL中试一下SQL语句看看有没有返回。