摘要: Declare @Oid int Declare @PriceTotal float--定义游标Declare cur cursor forSelect Oid from orders where oid in (select oid from ochild where Ochild.MID = @ProductSN) And Orders.PID = @SupplierSN And (Orders.LastDate >= @StartDate) And (Orders.LastDate <= @EndDate)--打开游标open cur--植入变量fetch ... 阅读全文
posted @ 2012-06-07 16:58 叮/当 阅读(252) 评论(0) 推荐(0) 编辑