Always show decimal places in SQL?

前端 未结 5 1851
无人及你
无人及你 2020-12-19 00:43

I\'m working on a query which returns numeric values (currency). Some of the values are whole numbers and are being displayed as 3, 5, 2 etc whilst other numbers are coming

5条回答
  •  时光取名叫无心
    2020-12-19 01:13

    The display and formatting of the data should be handled at the presentation layer - not the data one.

    Use the facilities provided by your front end to format the values as you see fit.

提交回复
热议问题