c# - converting money format to string in sql -
I have an app in C where I retrieve data from the database where the amount column in decimal (19.4) court The fee int and the solicitor's cost is float and the total amount is but I see in this format, it should be in this format. Is this possible. I'm new to C # to convert this format to string. Do not want to update your values or "convert" Do you want to format output? :
zodiac = 100.0000 court fee = 15 solvitters fee = 0 total amount = 115.0000
`0010000 (7) 01500 (5) 00000 (5) 00011500 (8).
SELECT RIGHT ('0000000' + CONVERT (VARCHAR, MyColumn), 7) MyTable as MyTable
Comments
Post a Comment