这是很难解释的选择,但我需要多个在一个声明中
- 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