Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

use 1000 seperator for my price column

hi
i have a question about one of my column in table
i have a float column --> price
i wanna use 1000 seperator for my price column
how can i do that
tanxfull
Mahsa
0
Mahsa60
Asked:
Mahsa60
1 Solution
 
curtis591Commented:
Your front end application would have to format it.
0
 
Ryan ChongCommented:
Try like:

Select CONVERT(varchar, CAST(myprice AS money), 1) from mytable
0
 
jdlambert1Commented:
Both front-end and cast-to-money/convert-with-style-1 will work. If you have a small amount of data to deal with, performance difference will be insignificant. If you have millions of records to work with, a well-written front-end formatting is likely to give the best performance, since it can do it in a single function, rather than 2 functions.
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Tackle projects and never again get stuck behind a technical roadblock.
Join Now