Sql 中取小数点后面两位小数.

select convert(numeric(8,2),round(UnTaxAmount,2))as UnTaxAmount from View_SaleVoice

select   cast(UnTaxAmount as decimal(20,2)) as UnTaxAmount   from View_SaleVoice

第一条感觉得好一些. 

posted on 2007-09-12 10:21  小土泥  阅读(1194)  评论(0编辑  收藏  举报

导航