CREATE   FUNCTION   dbo.fn_dayofmonth   (@dt   datetime)      
  RETURNS   int   AS      
  BEGIN    
  declare   @nextmonth   datetime  
  set   @nextmonth=dateadd(m,1,@dt)  
  return(day(dateadd(day,-day(@nextmonth),@nextmonth)))  
  END

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案