当ID是一位数就补8个0 是2位数就补7个0……

 

很遗憾asp没有直接能转换的函数,如下方法是最简单的。

right("000000000" & rs("id"),9)

 

参考:

http://zhidao.baidu.com/question/16924368.html