$a = "4,2,5,1";
$sql = "select * from table where id in (".$a.") order by charindex(id,'".$a."')";
可惜charindex 不支持bigint
该如何写这个sql
...全文
2041打赏收藏
求一sql
有关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