sql - I am looking to put a comma after two digits from right -


i looking put comma after 2 digits right. example have 250$ , in sql want select return 2,50$. example2: 500$ should 5.00$. 1000$. should 10,00$. how can done in select. have column holds value in sql database. in advance help. column data type bigint

ironically, can same way in database:

select cast( (col / 100.0) decimal(20, 2)) 

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -