0
我有一个问题,试图在用我的表定义为decimal(17)
行业里的条件与字符串存储过程使用十进制日期到SQL查询的WHERE条件
table1.datedecimal decimal(17)
我的SQL查询的比较是
select field1, field2
from table1
where table1.datedecimal >= cast(cast('3-10-2011' as datetime) as decimal)
and table1.datedecimal <= cast(cast('24-10-2011' as datetime) as decimal)
但我的查询返回零行
我很感激,如果有人能帮助我请! 谢谢
为什么要将日期存储为小数? –