简体   繁体   中英

Get multiple data from multiple tables in MYSQL by using single query

I'm working on an application My question is how can we get multiple data from multiple tables in MYSQL by using single query...? I'm using XAMPP. how can i use join statement? for an example i am attaching snapshots of my tables ... 教育表

需求表

Now all i want to get the degree from education and qualification from requirement. NOTE: my tables are still empty i just need a help with query.

You will have to go in the SQL tab and type the join yourself but I do not see a link between those two tables. You need to link them together first then run something like this:

SELECT t1.column1, t2.column2 FROM TABLE1 t1 LEFT JOIN TABLE2 t2 ON t1.ID = t2.TABLE1ID

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