查询提取被延迟的问题是什么? [英] What is the problem of query fetching to be delayed?

查看:73
本文介绍了查询提取被延迟的问题是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

select
it.C_Code,it.C_Name,
it.C_Pack,
gd.c_item_code,gd.n_qty from tbl_gdn_stock g
join tbl_gdn_stock_details gd on gd.n_srno=g.n_srno
inner join Tbl_Item_Mst it on it.C_Code=gd.c_item_code
where g.c_empid='4614' and g.c_year=2015 and MONTH(g.d_date)=01





执行上述查询时需要很长时间并且不显示任何数据。仍然显示查询正在执行...

如果我不加入 tbl_item_mst结果将显示..

推荐答案

检查表上的索引,在SQL事件探查器中运行查询并查看它推荐的索引。



除了由于我们没有相关信息并且无法访问您的实际系统,因此我们可以为您提供帮助。
Check the indexes on your tables, run the query in the SQL Profiler and see what indexes it recommends.

Other than the above there is very little we can help you with since we don't have relevant information and access to your actual system.


这篇关于查询提取被延迟的问题是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆