在sql中存在这样一个问题,

select cast('17520101' AS Datetime)

select cast('17530101' AS Datetime)
执行上面的第一个语句时出错:

服务器: 消息 242,级别 16,状态 3,行 1
从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界。

执行第二个语句时正确,

打了sp4仍有同样的问题

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-10-11
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2022-02-10
  • 2022-02-12
  • 2022-02-11
  • 2021-12-01
相关资源
相似解决方案