Apr 15, 2004 #1 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.
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.
Apr 15, 2004 #2 bdreed35 Programmer Mar 2, 2003 1,549 US 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 Upvote 0 Downvote
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
Apr 15, 2004 #3 JayKusch MIS Oct 30, 2001 3,199 US SELECT REPLACE(TheNumber,',','') FROM MyTable Thanks J. Kusch Upvote 0 Downvote