| 6 | |
| 7 | * Adding new Views: |
| 8 | |
| 9 | CREATE OR REPLACE VIEW tiangong_kaiwu_chap12_oilfat AS |
| 10 | SELECT * FROM mpdl.songy_tiang_zh_1637 |
| 11 | WHERE CAST(mpdl.songy_tiang_zh_1637.page AS numeric) >= 297 AND CAST(mpdl.songy_tiang_zh_1637.page AS numeric) <= 310; |
| 12 | |
| 13 | ALTER TABLE tiangong_kaiwu_chap12_oilfat OWNER TO postgres; |
| 14 | |
| 15 | Insert into gis_table_meta_rows values |
| 16 | (DEFAULT,'tiangong_kaiwu_chap12_oilfat','gis_id_point','gis_id'), |
| 17 | (DEFAULT,'tiangong_kaiwu_chap12_oilfat','latitude','coord_lat'), |
| 18 | (DEFAULT,'tiangong_kaiwu_chap12_oilfat','longitude','coord_lon'); |
| 19 | |
| 20 | Insert into gis_table_meta values |
| 21 | (DEFAULT,'postgres','mpdl','Song Yingxing: Tiangong Kaiwu, Chapt. 12, Oils and Fats','tiangong_kaiwu_chap12_oilfat','2011-02-17','2011-02-17'); |