-
Adding 01 to End of SSN
Hello,
Can anyone tell me how to add 01 to the end of social security numbers? Sometimes I have to do this to hundreds of records and apart from it being time consuming, it is a real pain. Any help will be greatly appreciated.
Thanks.
-
--if ssn is a char or varchar
update tablename set ssn = ssn+'01'
--if ssn is an int or bigint
update tablename set ssn =
convert(int,convert(varchar(20),ssn)+'01')
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|