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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -