Apr 15, 2004 #1 Phoenix22 Technical User Joined Sep 23, 2003 Messages 29 Location 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 Joined Mar 2, 2003 Messages 1,549 Location 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 Joined Oct 30, 2001 Messages 3,199 Location US SELECT REPLACE(TheNumber,',','') FROM MyTable Thanks J. Kusch Upvote 0 Downvote