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

  zodiac = 100.0000 court fee = 15 solvitters fee = 0 total amount = 115.0000   

but I see in this format, it should be in this format.

  `0010000 (7) 01500 (5) 00000 (5) 00011500 (8).   

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? :

  SELECT RIGHT ('0000000' + CONVERT (VARCHAR, MyColumn), 7) MyTable as MyTable    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -