在 iOS 中,我使用 sqllite,我创建了包含两个表的数据库,一个用于人员,第二个用于人员图像,我想获取任何一张图像的人员信息,但我的查询是返回具有重复人员 ID 的所有图像,请在此处帮助我是我的查询
SELECT person.id,person.name,person.date,allimages.imagepath,allimages.personid FROM Person INNER JOIN allimages
ON Person.id=allimages.personid
ORDER BY Person.ID
请分享您的宝贵知识。简而言之,我不想重复人名