我對SQL和phpmyadmin相當陌生,但在我的查詢中,我在相交處出現錯誤,並且想知道如何更改它以便打印我的表。將INTERSECT替換爲使用phpmyadmin
SELECT cust_code, cust_fname, cust_lname FROM lgcustomer join lginvoice
USING (cust_code) WHERE employee_id = 83649
INTERSECT
SELECT cust_code, cust_fname, cust_lname FROM lgcustomer join lginvoice
USING (cust_code) WHERE employee_id = 83677
ORDER BY cust_lname, cust_fname;
可能是你http://stackoverflow.com/questions/2300322/intersect-in-mysql –