Heena's Blog
Wednesday, 18 May 2011
Add leading 0 in zip code using update query in sql server
update tablename set zip='00'+zip where len(zip)=3
update tablename set zip='0'+zip where len(zip)=4
1 comment:
jay
4 July 2011 at 05:44
thanks for this it is helpful for my sql knowledge
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
thanks for this it is helpful for my sql knowledge
ReplyDelete