string dt = DateTime.Now.ToString("yyyy-MM-dd");     //取现在时间

"update client set c_class='失效客户' where u_

更新数据库中比现在时间小30天的数据

dt---是变量

c_date--是数据库中的日期

d--是比较天 可以换 m---比较月   yyyy---比较年

相关文章:

  • 2022-12-23
  • 2022-02-15
  • 2021-05-26
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2021-09-26
  • 2021-11-07
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案