在SQL上舍入几列

时间:2014-04-08 16:23:00

标签: sql oracle

我能够在SQL上围绕一个专栏:

 SELECT CUST_NAME, ROUND(opening_amnt,0) AS RoundedAmount
 FROM Customer_110385461;

但是我不知道如何一次整理几列?我试过了

 SELECT CUST_NAME, ROUND(opening_amnt,0)(receive_amnt,0) AS RoundedAmount
 FROM Customer_110385461;

但是我收到了错误"太多的功能参数"。

1 个答案:

答案 0 :(得分:4)

SELECT CUST_NAME
  , ROUND(opening_amnt,0) as Rounded_Opening_Amnt
  , ROUND(receive_amnt,0) AS Rounded_Receive_Amnt
FROM Customer_110385461;

如果你想要它们之前添加或之前的东西,那么你可以在一个圆形函数内完成。