Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在存储日历事件日期,包括重复事件。桌子可能会变得很大。我的大部分查询都是针对一个月的范围(即 eventstart >= '1/1/2001' 和 eventstop <= '1/31/2001'),所以我不太关心查询中的时间。
如果我查询日期列与日期时间列,我会在范围查询中获得更好的性能吗?
规则 1) 始终使用能够容纳最大可能值的最小数据大小。
http://www.sql-server-performance.com/2007/datatypes/