当前位置:
代码迷
>>
综合
>> 查询数据重复总结
详细解决方案
查询数据重复总结
热度:
10
发布时间:
2024-02-06 06:21:43.0
1.数据库对于同一数据,重复查询会自动去重
select * from user where id in(1,1);查询结果不会重复
2.关联查询不能自动去重
select * from xxx inner join xxx on id in(1,1,1) ;有重复
查看全文
相关解决方案