有关order by 的假设表名为table id为编号 类型bigint
$a = "4,2,5,1";
$sql = "select * from table where id in (".$a.") order by charindex(id,'".$a."')";
可惜charindex 不支持bigint该如何写这个sql
$a = "4,2,5,1";
$sql = "select * from table where id in (".$a.") order by charindex(id,'".$a."')";
可惜charindex 不支持bigint该如何写这个sql
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货