摘要:
--批量执行存储过程SELECT ROW_NUMBER() over(ORDER BY bo.orderno) RowNumber, bo.OrderNo,bo.OrderStatus INTO #aaaFROM bdOrder boJOIN mdDepartment md ON bo.DepartmentID=md.IDJOIN mdDepartment MD2 ON md.OrganID LIKE MD2.OrganID+'%'AND md2.ID=16AND bo.OrderDate>'2012-02-28'AND bo.OrderStatus IN 阅读全文