博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月4日

摘要: 近期,公司对数据库进行一系列的优化,优化过程中,产生了数据库字段长度对于查询时间是否有影响的问题争论,因此,做如下实验:创建两张表,table1,table2分别创建字段 waternum nvchar(4000),waternum nvchar(50)插入数据,对两张表插入250000条数据--增加数据到第一张表declare @a datetimedeclare @i intset @a=getdate()--这里加试验语句declare @b datetimedeclare @s intset @s=1while @s<=250000begin set @b=getdate() i 阅读全文

posted @ 2012-06-04 09:15 hyd309 阅读(3422) 评论(0) 推荐(0) 编辑