Changes between Version 3 and Version 4 of PATE France


Ignore:
Timestamp:
Apr 2, 2012 10:30:22 AM (13 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PATE France

    v3 v4  
    3333{{{ 
    3434#!sql 
     35--correction de la requete précédente pour utiliser la version roev2 en attendant la version v3 projettée 
    3536update rht.pate_france set a_conserver=FALSE where stanom like '%Obso%'--61 
     37update rht.pate_france set the_geom=NULL; 
     38update rht.pate_france set the_geom=rhtvs2_roev2.the_geom from rht.rhtvs2_roev2 where rhtvs2_roev2.id_roe=pate_france.id_roe; --3310 
     39select * from rht.pate_france where the_geom is null; --198 
     40 
     41 
     42select count(*) from rht.pate_france; --3508 
     43-- je rajoute l'id_drain dans la table rht.pate_france 
     44alter table rht.pate_france add column id_drain integer; 
     45update rht.pate_france set id_drain=sub.id_drain from ( 
     46select rhtvs2_roev2.id_drain, rhtvs2_roev2.id_roe from rht.pate_france join rht.rhtvs2_roev2 on rhtvs2_roev2.id_roe=pate_france.id_roe) sub 
     47where sub.id_roe=pate_france.id_roe; --3310 
    3648}}}