摘要:
1、event详细信息 # 查询所有的event事件 SELECT * FROM mysql.event; # 开启定时器 0:off 1:on SET GLOBAL event_scheduler = 1; # 查看是否开启定时器 SHOW VARIABLES LIKE 'event_schedu 阅读全文
摘要:
1、删除数据库 secondary.reg 中重复的数据 从id大的开始删除 # 删除表中多余的重复记录, SET SQL_SAFE_UPDATES = 0; delete from secondary.reg where regId not in ( select r.min_id from (s 阅读全文
摘要:
1、分组查询 SELECT houTransactionTime, count(houTransactionTime) FROM secondary.house2 where regionOne = "高新" group by houTransactionTime; 2、分组区间 根据 hou.de 阅读全文
摘要:
1、修改表名字 alter table secondary.deal_re_2 rename AS housedetails; 2、删除表 DROP TABLE secondary.house2; 3、复制表(tb_test01 是新表) create table tb_test01 like tb 阅读全文
摘要:
1、在安全模式下,只能根据主键来做修改,所以使用非主键修改,那么将要解除安全模式,然后再执行操作。 1)解除安全模式: SET SQL_SAFE_UPDATES = 0; DELETE FROM secondary.basicattributes where basAgeArchitecture = 阅读全文