最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

查询分页-----强势top

来源:懂视网 责编:小采 时间:2020-11-09 15:02:57
文档

查询分页-----强势top

查询分页-----强势top:查询分页:语句1性能提升10倍多,只是因为多了个top关键字,很不理解啊。 1.查询时间1s内,r_object_id主键 select top 100 * from ( select all doc.r_object_id objid,doc.name,doc.number, doc.cuid, doc.r_cr
推荐度:
导读查询分页-----强势top:查询分页:语句1性能提升10倍多,只是因为多了个top关键字,很不理解啊。 1.查询时间1s内,r_object_id主键 select top 100 * from ( select all doc.r_object_id objid,doc.name,doc.number, doc.cuid, doc.r_cr

查询分页:语句1性能提升10倍多,只是因为多了个top关键字,很不理解啊!!!! 1.查询时间1s内,r_object_id主键 select top 100 * from ( select all doc.r_object_id objid,doc.name,doc.number, doc.cuid, doc.r_creation_date, doc.security, doc.bordline,

查询分页:语句1性能提升10倍多,只是因为多了个top关键字,很不理解啊!!!!

1.查询时间1s内,r_object_id主键

select top 100 * from (
select all doc.r_object_id "objid",doc.name,doc.number, doc.cuid, doc.r_creation_date, doc.security, doc.bordline, doc.twicedline, doc.dline, doc.keynum, doc.creator_name,
doc.security_name, doc.dline_name, doc.pid, doc.modifier_name, doc.tblcount, doc.r_modify_date, doc.prjdefid, doc.voldefid, doc.tabledefid, doc.relation_id,
doc.r_object_type "r_object_type", doc.bcode "bcode", doc.copycount, doc.securityapply, doc.pgholtime, doc.done, doc.disciplineid, doc.disciplineid_name,
tabdef.fieldp2830b1886150468j, tabdef.fieldb7727l1886150454q, tabdef.fields5243t504621622q, tabdef.fieldt3385x504621623d, tabdef.fieldf3763y504621609s, tabdef.fieldk1536t504621614n,
tabdef.fieldr1297k504621621z, tabdef.fieldb5089j1350775945q, tabdef.fieldk5874q1350775954t, tabdef.fieldb2206h1350775945a, tabdef.fieldf4308a1350775949v, tabdef.recid,
CAST(ROW_NUMBER() OVER(ORDER BY doc.r_object_id asc ) as int) as dm_rnum
from ps_fld_doctree_document_sp doc
LEFT OUTER JOIN tabledef00054a9a80001e7d_sp tabdef ON (doc.r_object_id=tabdef.recid) where (doc.keynum like N'aaaaaaaaaaaaaaa%' and ((doc.isdel=0) or (doc.isdel=1)) )
and (doc.i_has_folder = 1 and doc.i_is_deleted = 0)
) dm_inline_view_1
where dm_rnum >= 101 AND dm_rnum <= 200 order by 1 asc

2.查询时间10s内

select * from (
select all doc.r_object_id "objid",doc.name,doc.number, doc.cuid, doc.r_creation_date, doc.security, doc.bordline, doc.twicedline, doc.dline, doc.keynum, doc.creator_name,
doc.security_name, doc.dline_name, doc.pid, doc.modifier_name, doc.tblcount, doc.r_modify_date, doc.prjdefid, doc.voldefid, doc.tabledefid, doc.relation_id,
doc.r_object_type "r_object_type", doc.bcode "bcode", doc.copycount, doc.securityapply, doc.pgholtime, doc.done, doc.disciplineid, doc.disciplineid_name,
tabdef.fieldp2830b1886150468j, tabdef.fieldb7727l1886150454q, tabdef.fields5243t504621622q, tabdef.fieldt3385x504621623d, tabdef.fieldf3763y504621609s, tabdef.fieldk1536t504621614n,
tabdef.fieldr1297k504621621z, tabdef.fieldb5089j1350775945q, tabdef.fieldk5874q1350775954t, tabdef.fieldb2206h1350775945a, tabdef.fieldf4308a1350775949v, tabdef.recid,
CAST(ROW_NUMBER() OVER(ORDER BY doc.r_object_id asc ) as int) as dm_rnum
from ps_fld_doctree_document_sp doc
LEFT OUTER JOIN tabledef00054a9a80001e7d_sp tabdef ON (doc.r_object_id=tabdef.recid) where (doc.keynum like N'aaaaaaaaaaaaaaa%' and ((doc.isdel=0) or (doc.isdel=1)) )
and (doc.i_has_folder = 1 and doc.i_is_deleted = 0)
) dm_inline_view_1
where dm_rnum >= 101 AND dm_rnum <= 200 order by 1 asc

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文档

查询分页-----强势top

查询分页-----强势top:查询分页:语句1性能提升10倍多,只是因为多了个top关键字,很不理解啊。 1.查询时间1s内,r_object_id主键 select top 100 * from ( select all doc.r_object_id objid,doc.name,doc.number, doc.cuid, doc.r_cr
推荐度:
标签: 查询 语句 强势
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top