Changes between Version 24 and Version 25 of Export table RHT
- Timestamp:
- Apr 11, 2012 10:30:49 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Export table RHT
v24 v25 51 51 crosstab.densite, 52 52 crosstab.abondance, 53 crosstab.nb_ar_mort_turb, 53 54 rhtvs2.the_geom, 54 55 rhtvs2.dmer, … … 56 57 rhtvs2.cumnbbar from rht.rhtvs2 left join 57 58 (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) 59 60 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') 61 62 AS ct(id_drain integer, 62 63 largeur numeric, … … 67 68 densite numeric, 68 69 abondance numeric, 69 exutoire numeric) 70 exutoire numeric, 71 nb_ar_mort_turb numeric) 70 72 )as crosstab 71 73 on rhtvs2.id_drain=crosstab.id_drain); 72 74 73 comment on table rht.crosstab_rhtvs2 is 'table crée le 6 avril 2012 a partir des résultats définitifs d''EDA'; 75 comment 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 77 alter table rht.crosstab_rhtvs2 add constraint c_pk_crosstab_rhtvs2 PRIMARY KEY (id_drain); 78 CREATE INDEX crosstab_rhtvs2_index 79 ON rht.crosstab_rhtvs2 80 USING btree 81 (id_drain); 82 CREATE INDEX crosstab_rhtvs2_gistindex 83 ON rht.rhtvs2 84 USING gist 85 (the_geom); 74 86 -- creation des clés et des index qui vont bien 75 87 alter table rht.crosstab_rhtvs2 add constraint c_pk_crosstab_rhtvs2 PRIMARY KEY (id_drain);