I have a table called users and I want to get some users according to the id so I am doing this:
select * from usuarios where id=2;
I just want to get several users with different ids, for example get users who have the id 2,8,10,11,20 at one time. How could I do this in SQL? If I put >
where id=2 and id=3
, it would not work because it compares. So could anyone tell me how to do it?