SQL:
select * from dbo.pds_operation_log where ( plan_code=12 and create_time between '1900-01-01' and '2098-12-31' ) order by create_time asc
出错:
消息296,级别16,状态3,第1 行
从char 数据类型到smalldatetime 数据类型的转换导致smalldatetime 值越界。
原因:
smalldatetime 日期范围从1900 年 1 月 1 日到 2079 年 6 月 6 日,