我有兩個疑問一個接直另:PHP SQL合併2查詢
$sql_result8 = mysql_query("SELECT * FROM properties WHERE c4='$id'", $db); $charges = mysql_num_rows($sql_result8);
$sql_result8 = mysql_query("SELECT * FROM vehicles WHERE c4='$id'", $db); $charges = $charges + mysql_num_rows($sql_result8);
我需要什麼樣的查詢合併這些?某種JOIN?聯盟?
着得到這個工作:o – user1022585 2012-01-15 13:01:07