sql自动补位:譬如说我要建一张表
Salary_QueryRecord200801
后面六位 是日期,
方法:'Salary_QueryRecord'+select cast(year(getdate()) as char(4))+ right(100+month(getdate()),2)

right(100+month(getdate()),2),这里是关键,需要灵活运用。

相关文章:

  • 2021-07-03
  • 2022-01-02
  • 2022-12-23
  • 2022-02-09
  • 2022-02-09
  • 2021-06-10
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-10-06
  • 2021-12-18
  • 2021-11-14
  • 2021-11-04
  • 2022-02-04
相关资源
相似解决方案