当我执行时:
SELECT some_fields
FROM some_table
WHERE some_other_field BETWEEN '20130901' AND '20131131'
我在VARCHAR值'20131131'到SMALLDATETIME字段的隐式转换期间出现错误(247)算术溢出。**
但是当我执行时:
SELECT some_field
FROM some_table
WHERE some_other_field BETWEEN '20130901' AND '20131130'
没抱怨。
(Sybase 15.7.0)
答案 0 :(得分:1)
WHERE some_other_field BETWEEN '20130901' AND '20131131'
到这个
WHERE some_other_field BETWEEN '20130901' AND '20131130'
它应该没有问题。