前端补0的三种方式。

select lpad(sal,8,'0') from emp;
select to_char(sal,'00000000') from emp;
select substr('00000000'||sal,-8) from emp;

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2022-01-05
  • 2022-12-23
  • 2021-11-23
  • 2021-12-15
  • 2021-12-29
相关资源
相似解决方案