- 2025年05月13日
- 星期二
在SQL Server 2008中添加了 date数据类型. 到目前为止,将datetime列转换为sargable,可以使用datetime列上的索引. select *from Twhere cast(DateTimeCol as date) = 20130101; 您拥有的另一个选择是使用范围. select *from Twhere DateTimeCol = 201301
在SQL Server 2008中添加了 date数据类型. 到目前为止,将datetime列转换为sargable,可以使用datetime列上的索引. select *from Twhere cast(DateTimeCol as date) = 20130101; 您拥有的另一个选择是使用范围. select *from Twhere DateTimeCol = 201301