CONVERT(INT,[待转化])
前提是代转化里必须是数字
待转化指数据库中列字段名
eg:
select emp_num, SUM(CONVERT(INT,[yugujine])) as zongshu from yejibiao where emp_num='2019042501' group by emp_num
CONVERT(INT,[待转化])
前提是代转化里必须是数字
待转化指数据库中列字段名
eg:
select emp_num, SUM(CONVERT(INT,[yugujine])) as zongshu from yejibiao where emp_num='2019042501' group by emp_num