27,579
社区成员
发帖
与我相关
我的任务
分享
use Sd_zjc_career_web_netconfer
select c.spid,d.text
from sys.dm_tran_locks a,
sys.sysprocesses c
cross apply sys.dm_exec_sql_text(c.sql_handle) d
where a.request_session_id=c.spid
and a.resource_database_id=db_id('Sd_zjc_career_web_netconfer')
and a.resource_type='OBJECT' and
a.resource_associated_entity_id=object_id('stuinfos_base')
select a.*,b.* from stuinfos_base a,Confer_dwszddm b where a.student_syszdmc =b.dwszd and a.student_year=' '
单独执行查询看看慢不慢,是什么结果
-- 把这个执行结果贴来看看
-- SQL1
select student_year,count(*) c
from stuinfos_base
group by student_year
-- SQL2
sp_helpindex stuinfos_base