摘要:
对没有索引的字段进行查询重复时如果使用select name from table where name in(select name from table group by name having count(name)>1)这类查询,效率非常低,是不可取的,下面给出替代步骤:1.根据重复记录创建临时表create table temptable as ( select title from video GROUP BY title HAVING count(title) >1);2.查询重复数据select a.* from temptable t,video a where 阅读全文
posted @ 2013-05-26 00:44
王 庆
阅读(390)
评论(0)
推荐(0)

浙公网安备 33010602011771号