Changes between Version 24 and Version 25 of Export table RHT


Ignore:
Timestamp:
Apr 11, 2012 10:30:49 PM (13 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Export table RHT

    v24 v25  
    5151  crosstab.densite,  
    5252  crosstab.abondance, 
     53  crosstab.nb_ar_mort_turb, 
    5354  rhtvs2.the_geom, 
    5455  rhtvs2.dmer, 
     
    5657  rhtvs2.cumnbbar from rht.rhtvs2 left join  
    5758        (SELECT * FROM crosstab('select res_id_drain, res_mod_id,res_value from rht.resultmodel 
    58                                         where res_mod_id in (24,23,25,26,4,5,6,27) 
     59                                        where res_mod_id in (24,23,25,26,4,5,6,27,28) 
    5960                                        order by 1,2', 
    60                                         'select mod_id from rht.model_mod where mod_id in (24,23,25,26,4,5,6,27) order by mod_id') 
     61                                        'select mod_id from rht.model_mod where mod_id in (24,23,25,26,4,5,6,27,28) order by mod_id') 
    6162                        AS ct(id_drain integer,  
    6263                        largeur numeric, 
     
    6768                        densite numeric, 
    6869                        abondance numeric, 
    69                         exutoire numeric)  
     70                        exutoire numeric, 
     71                        nb_ar_mort_turb numeric)  
    7072        )as crosstab 
    7173on rhtvs2.id_drain=crosstab.id_drain); 
    7274 
    73 comment on table rht.crosstab_rhtvs2 is 'table crée le 6 avril 2012 a partir des résultats définitifs d''EDA'; 
     75comment on table rht.crosstab_rhtvs2 is 'table crée le 6 avril 2012 a partir des résultats définitifs d''EDA, modifiée le 11/04/2012'; 
     76-- creation des clés et des index qui vont bien 
     77alter table rht.crosstab_rhtvs2 add constraint c_pk_crosstab_rhtvs2 PRIMARY KEY (id_drain);      
     78CREATE INDEX crosstab_rhtvs2_index 
     79  ON rht.crosstab_rhtvs2 
     80  USING btree 
     81  (id_drain); 
     82CREATE INDEX crosstab_rhtvs2_gistindex 
     83  ON rht.rhtvs2 
     84  USING gist 
     85  (the_geom); 
    7486-- creation des clés et des index qui vont bien 
    7587alter table rht.crosstab_rhtvs2 add constraint c_pk_crosstab_rhtvs2 PRIMARY KEY (id_drain);