当我尝试使用 mysql 启动查询以加入 3 个表时,出现以下错误:
错误代码:1064。您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以mahara.group_member
在第 6 行的“group INNER JOIN as group_members ON group_id = member”附近使用正确的语法
mysql是:
SELECT `mahara.group.id` as group_id,
`mahara.group.name` as group_name,
`mahara.group_member.member` as member_id,
`mahara.group_member.group` as member_groupid,
`mahara.usr.id` as user_id
FROM `mahara.group` as group
INNER JOIN `mahara.group_member` as group_members ON group_id = member_id,
INNER JOIN `mahara.usr` as users ON member_id = user_id
LIMIT 0, 200;
对于我的生活,我看不到我做错了什么。任何帮助表示赞赏。
干杯