select  top  1 CONVERT(int,  ISNULL(   REPLACE( ClientCode , '{0}' ,''),0) ) +1 as MaxValue from CRM_Client where ClientCode like '{0}%' " +
                                    "order by CONVERT(int, REPLACE( ClientCode , '{0}' ,'')) desc

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案