摘要: 首先建立两张表,第一张表存放城市名称、最高气温、最低气温、降水量和日期。第二张表存放城市名称和城市坐标。第一张表:weatherCREATE TABLE weather ( city varchar(80), -- 城市名称 temp_lo int, -- 最低气温 temp_hi int, -- 最高气温 prcp real, -- 降水量 date date -- 日期 );第二张表:citiesCREATE TABLE cities ( name varchar(80), -- 城市名称 location point -- 坐标 );point 类型就是一种 PostgreS... 阅读全文
posted @ 2013-04-15 17:41 VRML_0504 阅读(451) 评论(0) 推荐(0) 编辑