| 95 | DROP TABLE IF EXISTS bd_carthage2011.troncon_Bretagne; |
| 96 | CREATE TABLE bd_carthage2011.troncon_Bretagne AS |
| 97 | SELECT * FROM bd_carthage2011.troncon_hydrographique |
| 98 | WHERE id_bdcarth IN (SELECT id_bdcarth FROM uga2010.id_bdcarthage WHERE uga='Bretagne'); |
| 99 | ALTER TABLE bd_carthage2011.troncon_Bretagne ADD CONSTRAINT pk_id_bdcarth_Bretagne PRIMARY KEY (id_bdcarth); |
| 100 | INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type") |
| 101 | SELECT '', 'bd_carthage2011', 'troncon_Bretagne', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom) |
| 102 | FROM bd_carthage2011.troncon_Bretagne LIMIT 1; |
| 103 | |