I have 2 tables in mysql: tableA and tableB
tableA: idA
tableB: idB, name
Now i want to fire following query:
SELECT * FROM tableA WHERE idA in (1, 2, 3, 4);
idA and idB are exactly same. I want to access “name” field of tableB in the above query.
How do i do this???
Thanks alot for help
Regards
Use a MySQL JOIN