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中不能使用">","<"等符号,需要使用<>进行代替操作…
mysql常用快速查询修改操作 一.查找并修改非innodb引擎为innodb引擎 # 通用操作 mysql> select concat('alter table ',table_schema,'.',table_name,' engine=innodb;') from information_schema.tables where table_schema not in ('information_schema','mysql','performance_schema') and engin…