update t1 as a inner join t2 as b on a.ip=b.ip set a.hostroom=b.hostroom where a.hostroom is null
超慢,卡住不动了
where a.hostroom is null有17000条记录
怎么这样呢
超慢,卡住不动了
where a.hostroom is null有17000条记录
怎么这样呢
解决方案 »
- MySQL水平分表,分了很多...然后要统计count(*) 。大家有什么好的方法?
- postgreSQL ERROR: missing FROM-clause entry for table "glxt320" at character 104
- mysql存储过程里怎么循环一张表
- 请问大家php偶尔出现链接mysql错误是怎么回事?
- 求助,谁能帮帮我啊,在线等!
- MySQL 主表对应多表查询优化
- 【急】创建外键约束出现问题
- mysql中的key 分区为什么总是一半有数据,一半没有数据?
- mysql按照数据检索某表的金额问题
- 关于数据库名称是中文的问题
- mysql中怎样区分中文和阿拉伯文字符
- linux(suse)重装mysql失败
a.ip=b.ip IP字段加上索引能解决问题。
explain
select a.hostroom ,b.hostroom
t1 as a inner join t2 as b on a.ip=b.ip where a.hostroom is null
;