-2
我试图一次从3个表中检索数据,但我不知道如何在mysql中做到这一点(要说实话,我真的很糟糕的数据库的东西,所以这混淆地狱了我)。如何做多选择然后concat数据一起在mysql
1st logins table that has 3 columns id, email, password
2nd users table that has 4 columns id, name, surname, location_id
3rd locations has 3 columns location_id, country, city
我想要做的是使用用户ID来获得从登录表中的电子邮件,然后从用户表中获取姓名写查询。然后我想使用从用户表得到的location_id来找出他或她来自哪个城市。
我希望这对你有意义,谢谢你的时间。
@Shadow感谢您的帮助 – Newbie2016