数据查重

表内容如下图:

数据查重

查重语句:

 

Select * from t1 where id in(Select max(id) from t1 group by book,author)

 

结果如下:

数据查重

相关文章: