update dic_purchase set state =0 where purchase_number in (select tmp.* from (select purchase_number from dic_purchase where DATEDIFF(latest_time,SYSDATE())<0)tmp)

以查询的条件作为修改的数据

 

注:在mybatis中不能使用">","<"等符号,需要使用&lt;&gt;进行代替操作

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案