select 查询如何根据表中一个字段的值n,查出n条重复的这个记录。可以实现的吗?
就是比如说有个表a 里面有条记录 有个字段值为b=2 然后查询语句查出两条记录
select * from a where b = 2 ????
select * from a where b like '%b%'
感觉你的问题 不是很清楚
select *from awhere b=2;默认情况是all,要筛选时加上distinct