【发布时间】:2018-07-20 20:06:21
【问题描述】:
我不知道在尝试设置时是使用 JOIN 还是 UNION,但是当我找到这个答案时:MySQL Select all columns from one table and some from another table 我认为这可能有效。原来我仍然得到一个错误。我的设置有什么问题吗?
$sql = "SELECT user_images.*, users.profile";
基本上我在一个表中有用户图像(user_images),我还想在users 表中显示一些用户信息,例如个人资料列。
【问题讨论】: