Changes between Version 68 and Version 69 of PATE Anguille


Ignore:
Timestamp:
Mar 8, 2012 5:11:32 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PATE Anguille

    v68 v69  
    595595}}} 
    596596 
     597{{{ 
     598alter table rht.pate_mortalite add column id_drain integer; 
     599update rht.pate_mortalite set id_drain=sub.id_drain from (select id_drain, id_roe from rht.pate) as sub where pate_mortalite.id_roe=sub.id_roe; 
     600 
     601alter table rht.pate_mortalite add column id_drain integer; 
     602update rht.pate_mortalite set id_drain=sub.id_drain from (select id_drain, id_roe from rht.pate) as sub where pate_mortalite.id_roe=sub.id_roe; 
     603update rht.pate_mortalite set id_drain='116909' where id_roe='ROE4907'; 
     604update rht.pate_mortalite set id_drain='121003' where id_roe='ROE22958'; 
     605insert into rht.pate(id_roe) values ('ROE4907'),('ROE22958'); 
     606 
     607update rht.pate_mortalite set dmer=sub.dmer/1000 from (select id_drain, dmer from rht.rhtvs2) as sub where pate_mortalite.id_drain=sub.id_drain; 
     608update rht.pate_mortalite set module=sub.module from (select id_drain, module from rht.attributs_rht_fev_2011_vs2) as sub where pate_mortalite.id_drain=sub.id_drain; 
     609 
     610alter table rht.pate_mortalite add column mortalite numeric; 
     611}}} 
     612 
     613 
    597614== Export table == 
    598615{{{