Home > Backend Development > PHP Tutorial > 很奇怪的mysql查询有关问题;请问一下

很奇怪的mysql查询有关问题;请问一下

WBOY
Release: 2016-06-13 10:08:35
Original
982 people have browsed it

很奇怪的mysql查询问题;请教一下
$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()字句?

------解决方案--------------------
后面怎么写的。
------解决方案--------------------
我没有象你这样写过啊。
------解决方案--------------------
是可以的哈,可能你需要在检查一下你的sql语句

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template