enter code here
' SELECT * FROM itemregister WHERE emailf IN(来自验证WHERE sno = MAX(sno)的SELECT电子邮件)'
使用此查询功能时出现错误 SQLSTATE [HY000]:常规错误:1111无效使用组功能" 任何人都可以帮我弄清楚。
答案 0 :(得分:0)
我会尝试用
来解决您的问题,而不是回答您提出的问题SELECT ir.*
FROM (
SELECT email
FROM verify
ORDER BY sno DESC
LIMIT 1
) AS x
JOIN itemregister AS ir ON x.email = ir.emailf