By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,610 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,610 IT Pros & Developers. It's quick & easy.

how do you add a zero to the left of an integer

P: 21
hi all

say i have:
declare var1 CHAR(06) default '012345';

if i cast it to integer i get 12345 only
how do i cast it to integer yet maintain the leading zero?

Jul 12 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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