时间:2021-07-01 10:21:17 帮助过:39人阅读
$names = '"张三','李四','王五'";
$sql = "select * form t where name in ($names)";
$ar = array("张三', '李四', '王五');
$names = join("'", $a);
$sql = "select * form t where name in ('$names')";
还可以
$sql = "select * form t where find_in_set(name, ''张三,'李四,'王五')";