例如,想得到5个0:

SYS@ning>select LPad('0',5,'0') from dual;

SYS@ning>select RLad('0',5,'0') from dual;

即可!

很方便是不是?

相关文章: