Mysql输出一个而不是很多

时间:2011-10-18 06:04:27

标签: php mysql

我有如下的mysql数据

country City   Address
    US  NY  Address 1
    US  NY  Address 2
    US  DC  Address 3
    US  NY  Address 4
    US  LA  Address 5

现在如果我愿意

SELECT city from country_list WHERE country='US'

Out out看起来像NY,NY,NY我想打印一次纽约,我该怎么办呢?

1 个答案:

答案 0 :(得分:0)

SELECT DISTINCT city from country_list WHERE country='US'