如何在配置单元中选择多行

时间:2017-04-18 03:37:56

标签: sql hadoop hive

表是:

city_id string,city_name string,city_country string,city_coord_lon string,city_coord_lat string,time string,data_dt string,data_temp_day string,data_temp_min string,data_temp_max string,data_temp_night string,data_temp_eve string,data_temp_morn string,data_pressure string,data_humidity string,data_weather_id string ,data_weather_main string,data_weather_description string,data_weather_icon string,data_speed string,data_deg string,data_clouds string,data_rain string,data_snow string) 行格式分隔的字段以'','lines;

结尾

My table Format

我想选择位于加德满都市的所有温度值。

1 个答案:

答案 0 :(得分:0)

Select myTable.column1, myTable.column2, .... from myTable where myTable .city_name = 'Kathmandu' 

(如果City_name包含真实的城市名称,如果没有将city_name更改为同一列)