我有這個MySQL查詢,但它似乎在我嘗試運行它時出現錯誤。由於我是新手,我希望得到一些關於我應該怎樣改正的建議。我只想顯示具有一個或多個待定產品的訂單的名稱,數量和訂單日期。非常感謝!MySQL查詢多表內連接
select product.name, order_details.quantity, order.date from product,order_details,order
inner join order on order_details.order_id=order.id
inner join product on order_details.product_id=product.id
inner join customer on order.cust_id=costumer.id WHERE order.pending=>1
你正在得到哪個錯誤.. ?? –
如果待處理的信息位於訂單表中,您如何知道哪些產品仍在等待處理? –
你是對的,我沒有得到任何結果。 – Js30