xiaotuni

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

第一条感觉得好一些. 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-08-07
  • 2021-12-18
  • 2021-10-28
猜你喜欢
  • 2021-12-18
  • 2021-12-18
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-01-19
相关资源
相似解决方案