右补0:select RPAD(id,8,'0') as pad from tmp; 
左补0:select LPAD(id,8,'0') as pad from tmp;

相关文章:

  • 2021-12-17
  • 2021-12-20
  • 2022-02-08
  • 2021-08-06
  • 2022-02-19
  • 2021-12-24
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2021-12-28
  • 2021-05-19
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案