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 不同的问题:错误代码:

1242 子查询返回多于 1 行

4

1 回答 1

0

你需要一个加盟

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
于 2015-10-05T18:19:28.473 回答