469,591 Members | 1,793 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.


Hi frnds, I want to know that zerofill is a valid function in SQL or not....
Feb 17 '08 #1
1 2737
2,878 Expert 2GB
I think that's a MySQL function. If that's a function that left-pad the value with '0', you can still re-create it in sql-server. Something like:

Expand|Select|Wrap|Line Numbers
  1. SELECT right('0000000000' + rtrim(ltrim(cast(@myInt as varchar(10))),10)
-- CK
Feb 18 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Westcoast Sheri | last post: by
3 posts views Thread by Khazret Sapenov | last post: by
2 posts views Thread by NotVeryBright | last post: by
reply views Thread by someone | last post: by
8 posts views Thread by Richard Maher | last post: by
2 posts views Thread by WebSnozz | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.