Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Commas in Number Formatting?

Status
Not open for further replies.

Phoenix22

Technical User
Sep 23, 2003
29
CA
Hi,

Is there a way I can remove the "," in a column of numbers so that 1,234 would appear in the table as 1234?

Thank you in advance.
 
It is probably not stored as a number if has the comma in it.

This will remove it for you:

select replace(your_field,',','')

If you want to convert it to a number, try this:

select convert(int, replace(your_field,',',''))

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top