如何在postgres查询中将50000转换为.5万字节

时间:2017-10-25 06:11:42

标签: postgresql

c.PlainTextFormatter.max_width = 120

如何转换为此内容?

Select * from employee;

ID  name       salary
1   karthi      30000
2   Thushara    70000
3   Divya       150000

请参阅Indian Numbering System

1 个答案:

答案 0 :(得分:1)

SELECT
   id,
   name,
   CONCAT(salary/100000,' lakhs') as salary
FROM
   employee;