在php页面,如果对生成的临时表执行select
$sql = "create temporary table temp select xxx from xxx .....";
$result = mysql_query($sql,$conn) or die("error for Create temporary table");
$sql ="select * from #temp";
$result = mysql_query($sql,$conn) or die("sql error");
这样做对吗??
我测试,怎么不对呵