试试看:
SELECt COUNT(cs.City) as Cities, cn.name as CountryFROM countries cn INNER JOIN country_city cs ON cs.Cntr = cn.id GROUP BY cn.name
输出:
2 | Greece1 | Italy
欢迎分享,转载请注明来源:内存溢出
试试看:
SELECt COUNT(cs.City) as Cities, cn.name as CountryFROM countries cn INNER JOIN country_city cs ON cs.Cntr = cn.id GROUP BY cn.name
输出:
2 | Greece1 | Italy
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)