![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sqlserver
文章平均质量分 78
东东东_咚
这个作者很懒,什么都没留下…
展开
-
sqlserver 处理百万级以上的数据处理
处理百万级以上的数据提高查询速度的方法: 1.应尽量避免在 where 子句中使用!=或 2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: sel转载 2014-05-13 11:16:22 · 5294 阅读 · 1 评论 -
sql 临时表的使用先删除的语句
if OBJECT_ID(N'tempdb..#tempTable',N'U') Is Not NUll Drop Table #tempTableselect id into tempTable原创 2014-09-02 09:34:16 · 610 阅读 · 0 评论