判断删除临时表
ifOBJECT_ID('tempdb..'+'#TEMP_Product')isnotnull
DROPTABLE#TEMP_Product
转换数据为指定位数的值.转换后没有多余的位数0
select convert(numeric(10,0),1231.5343)
两个数字做除法保留位数
select convert(numeric(10,3),cast(154 as float)/1000)
如果觉得《ms sqlserver 常用T-sql语句》对你有帮助,请点赞、收藏,并留下你的观点哦!