右侧补0 select rpad(seq_acct.nextval ,6 ,'0') from dual; 左侧补0 select lpad(seq_acct.nextval ,6 ,'0') from dual;