這是很難解釋的選擇,但我需要多個在一個聲明中
- select id from customers
- foreach customer find the order with that id
-- foreach order (for that customer)
--- select product.name, product.max on order.productId=product.id
我不知道如何來拉這個數據。我需要多個單獨的選擇?我可以寫一個長的單個sql語句(';'算作單獨的:P)。我怎麼拉,從一排子行......
我會嘗試連接,但給予一定的表的模式,所以我們會知道 – 2009-09-25 16:42:31