首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

php下执行查询奇怪的有关问题

2012-04-07 
php下执行查询奇怪的问题;$sql select * from user_search_detail where user_id in (430,452,443,452)

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语句看看有没有返回。

热点排行