MySql明显问题:错误码:1242子查询返回多于1行



我想选择不同的apps_user。imeino

我当前的SQL查询:

SELECT app.name,app.emailid,app.mobileno,app.imeino,img.id,img.approve_status,img.path 
FROM apps_user  app, apps_userimage img 
WHERE ((SELECT DISTINCT apps_user.imeino FROM apps_user) =img.imeino );

MySql Distinct Issues: Error Code:

1242子查询返回多于1行

你需要一个join

SELECT app.name,app.emailid,app.mobileno,app.imeino,img.id,img.approve_status,img.path 
FROM apps_user app
join apps_userimage img on app.imeino = img.imeino

相关内容

  • 没有找到相关文章

最新更新