how to get 2 digits after decimal point in tsql?

前端 未结 8 1046
梦如初夏
梦如初夏 2021-02-02 05:42

I am having problem to format digits in my select column.I used FORMAT but it doesn\'t work. Here is my column:

sum(cast(datediff(second, IEC.CREATE_DATE, IEC.ST         


        
8条回答
  •  既然无缘
    2021-02-02 06:22

    Your format syntax is wrong actual syntax is

     FORMAT ( value, format [, culture ] )
    

    Please follow this link it helps you

    Click here for more details

提交回复
热议问题