select * from table where id=1 or id=2 or id=3 or id=4 or id=3
但是,你知道。这样。显示不出来。
不可能实现,我试过了。
显示的时候,如果id=3就显示多一次,没必要从取DATA时处理。
要不然,就INSERT多一行ID=3的(这个虽然不合理,但凑合)
select * from table where id in(1,2,3,4) union all select * from table where id =3
mysql select * from table where id in(1,2,3,3,4) or id=3
select Distinct t.* from table t where t.id in(1,2,3,3,4) order by t.id