Changes between Version 14 and Version 15 of CookBook RHT_UGA


Ignore:
Timestamp:
Feb 2, 2012 3:17:39 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook RHT_UGA

    v14 v15  
    149149delete from uga2010.id_drain_uga where id_drain in ('402982') and uga='Artois-Picardie'; 
    150150delete from uga2010.id_drain_uga where id_drain in ('503639') and uga='Rhin'; 
    151 }}} 
     151 
     152UPDATE uga2010.id_drain_uga set uga='Adour' where id_drain in ('108801','108802'); 
     153UPDATE uga2010.id_drain_uga set uga='Garonne' where id_drain in ('100194','100151','100147','100123','100124','100102','109173','109156','109157'); 
     154}}} 
     155 
     156== RHT par UGA == 
     157{{{ 
     158#!sql 
     159drop table if exists rht.rhtvs2_Adour; 
     160create table rht.rhtvs2_Adour as ( 
     161select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Adour')); ---lines 
     162CREATE INDEX indexid_drainAdour 
     163ON rht.rhtvs2_Adour 
     164USING btree (id_drain); 
     165 
     166drop table if exists rht.rhtvs2_Bretagne; 
     167create table rht.rhtvs2_Bretagne as ( 
     168select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Bretagne')); ---6466lines 
     169CREATE INDEX indexid_drainBretagne 
     170ON rht.rhtvs2_Bretagne 
     171USING btree (id_drain); 
     172 
     173drop table if exists rht.rhtvs2_Garonne; 
     174create table rht.rhtvs2_Garonne as ( 
     175select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Garonne')); ---lines 
     176CREATE INDEX indexid_drainGaronne 
     177ON rht.rhtvs2_Garonne 
     178USING btree (id_drain); 
     179 
     180drop table if exists rht.rhtvs2_Rhin; 
     181create table rht.rhtvs2_Rhin as ( 
     182select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Rhin')); ---lines 
     183CREATE INDEX indexid_drainRhin 
     184ON rht.rhtvs2_Rhin 
     185USING btree (id_drain); 
     186 
     187drop table if exists rht.rhtvs2_Meuse; 
     188create table rht.rhtvs2_Meuse as ( 
     189select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Meuse')); ---lines 
     190CREATE INDEX indexid_drainMeuse 
     191ON rht.rhtvs2_Meuse 
     192USING btree (id_drain); 
     193 
     194drop table if exists rht.rhtvs2_Loire; 
     195create table rht.rhtvs2_Loire as ( 
     196select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Loire')); ---lines 
     197CREATE INDEX indexid_drainLoire 
     198ON rht.rhtvs2_Loire 
     199USING btree (id_drain); 
     200 
     201drop table if exists rht.rhtvs2_SeineNormandie; 
     202create table rht.rhtvs2_SeineNormandie as ( 
     203select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Seine-Normandie')); ---lines 
     204CREATE INDEX indexid_drainSeineNormandie 
     205ON rht.rhtvs2_SeineNormandie 
     206USING btree (id_drain); 
     207 
     208drop table if exists rht.rhtvs2_Corse; 
     209create table rht.rhtvs2_Corse as ( 
     210select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Corse')); ---lines 
     211CREATE INDEX indexid_drainCorse 
     212ON rht.rhtvs2_Corse 
     213USING btree (id_drain); 
     214 
     215drop table if exists rht.rhtvs2_ArtoisPicardie; 
     216create table rht.rhtvs2_ArtoisPicardie as ( 
     217select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Artois-Picardie')); ---lines 
     218CREATE INDEX indexid_drainArtoisPicardie 
     219ON rht.rhtvs2_ArtoisPicardie 
     220USING btree (id_drain); 
     221 
     222drop table if exists rht.rhtvs2_RhoneMediterranee; 
     223create table rht.rhtvs2_RhoneMediterranee as ( 
     224select * from rht.rhtvs2 where id_drain in (select id_drain from uga2010.id_drain_uga where uga='Rhone-Mediterranee')); ---lines 
     225CREATE INDEX indexid_drainRhoneMediterranee 
     226ON rht.rhtvs2_RhoneMediterranee 
     227USING btree (id_drain); 
     228}}}