254 | | |
| 254 | drop table if exists wrbd.mi_operation_op; |
| 255 | |
| 256 | create table wrbd.mi_operation_op ( |
| 257 | op_lat numeric, |
| 258 | op_long numeric, |
| 259 | op_folio_no character varying(50), |
| 260 | op_code character varying(10), |
| 261 | ope_date date, |
| 262 | ope_year integer, |
| 263 | length text,-- |
| 264 | av_width text,-- |
| 265 | op_area numeric, |
| 266 | habitat_type text,-- |
| 267 | dominant_site_substrate text,-- |
| 268 | macrophyte_cover text,-- |
| 269 | riparian_cover text,-- |
| 270 | datasource text,-- |
| 271 | methodology text, |
| 272 | op_efishing_units text, |
| 273 | no_hooks text, -- |
| 274 | no_nets text , -- |
| 275 | no_days_fished text, -- |
| 276 | op_glass numeric, |
| 277 | op_elver numeric, |
| 278 | op_yellow numeric, |
| 279 | op_silver numeric, |
| 280 | op_not_recorded numeric, |
| 281 | population_life_stage text, -- |
| 282 | op_eels_anaesthetized text, |
| 283 | op_num_fishing integer, |
| 284 | op_p1 integer, |
| 285 | op_p2 integer, |
| 286 | op_p3 integer, |
| 287 | op_p4 integer, |
| 288 | op_p5 integer, |
| 289 | op_total integer, |
| 290 | op_abundance_rating integer, |
| 291 | op_distribution character varying(15), |
| 292 | cpue text,-- |
| 293 | biomass text,-- |
| 294 | op_main_survey_target character varying(20), |
| 295 | annual_elver text, |
| 296 | silver_eel_annual_catch text, |
| 297 | commercial_catch_brown text, |
| 298 | commercial_catch_silver text, |
| 299 | cond text, |
| 300 | temp text, |
| 301 | report text, |
| 302 | authors text, |
| 303 | journal_ref text, |
| 304 | point_of_contact text, |
| 305 | p_of_contact_code text , |
| 306 | p_of_contact2 text, |
| 307 | p_of_c_code2 text, |
| 308 | opedisthwm numeric, |
| 309 | gradient text -- |
| 310 | ); |
| 311 | |
| 312 | |
| 313 | copy wrbd.station_st from 'C:/base/Operation_14_Eel_Db_MI_Rivers.csv' with csv delimiter as ';' header; |