- SQL code
select 1 from dept where '114.56'>11.0/*Arithmetic overflow error converting varchar to data type numeric.*/
一定需要将114.56显示转换吗?
------解决方案--------------------
11.0 不指定类型的话,默认为 numeric(3,1) 显然是存不下114.56的
select 1 from dept where '114.56'>11.0/*Arithmetic overflow error converting varchar to data type numeric.*/