【发布时间】:2013-08-24 08:40:26
【问题描述】:
执行时显示以下错误
declare @yr_mnth_dt as numeric;
set @yr_mnth_dt = 20130822;
select convert(datetime,@yr_mnth_dt,112) as YR_MNTH_DT
错误显示
Arithmetic overflow error converting expression to data type datetime.
【问题讨论】:
-
我通常看到像处理字符串而不是数字的转换表达式。一定要从数字类型开始吗?
标签: sql-server stored-procedures