Question

I have table T1.

id | name | surname
1    AA      XX
2    BB      YY
3    CC      ZZ

I want such query which will return

all data of rows, where id=1 & id =2

Was it helpful?

Solution

SELECT * FROM T1 WHERE id IN (1,2);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top