简体   繁体   中英

How can I get all email addresses from all tables in one query [on hold]

I want to get all email addresses from all tables(whatever column name is and whatever table name is) in one query. Is It possible, If yes then how?

You can use UNION :

SELECT email FROM table1
UNION
SELECT email FROM table2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM