我有两张表 1. 大洲列表 2. 属于 6 个大洲的国家。在我的应用程序中,我想在表格视图中显示大陆名称和属于该大陆的国家/地区。我目前的选择:
SELECT cont.continentID,cont.continentName,cont.continentImage,(select contr.countryName from countries as contr where contr.relativeToContinent=cont.continentID) as 'hash'\
FROM Continents as cont
坦率地说,我期待看到完整的国家列表,因为从国家中选择 contr.countryName 作为 contr where contr.relativeToContinent=cont.continentID select,是的,检索完整列表,但是当所有选择组合在一起时,我是仅从列表中获取第一个国家/地区。如何解决这个问题呢?先感谢您。