首页 相关文章 SQL SERVER 优化实例:从运行30分钟到运行只要30秒

SQL SERVER 优化实例:从运行30分钟到运行只要30秒

以下的SQL语句在服务器需要运行长达30分钟才能完成:SELECT   dbo.ComFlow.ComFlowCode, dbo.ComFlow.ComCode,
dbo.ComFlow.CustCode, dbo.ComFlow.DepartCode, dbo.ComFlow.SaleCode,
           dbo.ComFlow.EmpCode, dbo.ComFlow.Quantity *
dbo.Commodity.ConvertRate AS Quantity, CONVERT(datetime, DATENAME(yyyy,
           dbo.ComFlow.FlowDate) + '-' + DATENAME(mm, dbo.ComFlow.
FlowDate) + '-' + DATENAME(dd, dbo.ComFlow.FlowDate)) AS FlowDate,
           dbo.ComFlow.SalType, dbo.Employee.DepartCode AS
DepartIn, dbo.Sale.DepartCode AS DepartO...[ 查看全文 ]

2016-02-19 标签:

SQL SERVER 优化实例:从运行30分钟到运行只要30秒的相关文章

手机页面
收藏网站 回到头部