for example:
SELECT id, name, age FROM employee WHERE id = 2
UNION
SELECT id, name, age FROM employee WHERE id = 5
Note: both query contains same number of fields.
In above example, there are 3 fields in first query and 3 fields in second query.
In above example, there are 3 fields in first query and 3 fields in second query.
Cheers!
ReplyDeleteReally awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
Offshore PHP Development in India