2021-05-24
作者:互联网
INSERT INTO PIG.ods_sow_polymerize PARTITION ( DT = '2021-5-24', COUNTRY = '转生产 0' ) SELECT ID, DTM_ADD_TIME,DTM_EDIT_TIME,NVC_DELETE,NVC_OPT_MAN,NVC_SOW_ID,DTM_BILL_DATE,NVC_OLD_PRODUCT_STATE,DTM_OLD_STATE_DATE,NVC_OPT_ID,NVC_OPT_NAME,INT_AGE_DAY,NVC_SOW_POSITION,NULL,NULL,NULL,NULL,NULL,NVC_ERA_NO,NULL,NULL,NULL,DTM_BIRTH_DATE,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NVC_CHECK_STATE,NVC_APPLY_STATE,DBL_BEFORE_WEIGHT,DBL_ZSC_WEIGHT,NVC_NOTE,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM pig_hive.t_pigbreed_sow_zscrecord;
INSERT INTO PIG.ods_sow_polymerize PARTITION ( DT = '2021-5-24', COUNTRY = '配种 0' ) SELECT ID, DTM_ADD_TIME,DTM_EDIT_TIME,NVC_DELETE,NVC_OPT_MAN,NVC_SOW_ID,DTM_FIRSTMAT_DATE,NVC_OLD_PRO_STATE,DTM_OLD_PRO_DATE,NULL,NULL,INT_DAY_AGE,NVC_SOW_POSITION,NULL,NULL,NULL,NULL,NULL,NVC_ERA_NO,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NVC_NOTE,NULL,NULL,NULL,NVC_FIRSTBOAR_ID,NVC_SECONDBOAR_ID,NVC_THIRDBOAR_ID,NVC_MAT_POSITION,NVC_FIRSTBOAR_NO,DTM_SECONDMAT_DATE,NVC_SECONDBOAR_NO,NVC_SECONDOPERATOR,DTM_THIRDMAT_DATE,NVC_THIRDBOAR_NO,NVC_THIRDOPERATOR,NVC_FIRSTOPT_ID,NVC_SECONDOPT_ID,NVC_THIRDOPT_ID,NVC_FIRSTBOAR_VARIETYID,NVC_FIRSTBOAR_VARIETY,NVC_SECONDBOAR_VARIETYID,NVC_SECONDBOAR_VARIETY,NVC_THIRDBOAR_VARIETYID,NVC_THIRDBOAR_VARIETY,INT_FIRST_SEMEON_NUM,INT_SECOND_SEMEON_NUM,INT_THIRD_SEMEON_NUM,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM t_pigbreed_sow_mating;
INSERT INTO PIG.ods_sow_polymerize PARTITION ( DT = '2021-5-24', COUNTRY = '妊娠 0' ) SELECT ID, DTM_ADD_TIME,DTM_EDIT_TIME,NVC_DELETE,NVC_OPT_MAN,NVC_SOW_ID,DTM_GES_TASK_DATE AS DTM_BILL_DATE,NVC_OLD_PRO_STATE,DTM_OLD_PRO_DATE,NVC_OPT_ID,NVC_OPT_NAME,INT_DAY_AGE,NVC_SOW_POSITION,NULL,NULL,NULL,NULL,NULL,NVC_ERA_NO,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,INT_PARITY,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NVC_GES_POSITION,DTM_MAT_DATE,DTM_GES_DATE,NVC_GES_RESULT,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM pig_hive.t_pigbreed_sow_gestating;
INSERT INTO PIG.ods_sow_polymerize PARTITION ( DT = '2021-5-24', COUNTRY = '入场 0' ) SELECT ID, DTM_ADD_TIME,DTM_EDIT_TIME,NVC_DELETE,NVC_OPT_MAN,NVC_SOW_ID,DTM_IN_DATE,null,null,NVC_OPT_ID,NVC_OPT_NAME,int_day_age,NVC_SOW_POSITION,NULL,nvc_farm_id,nvc_proline_id,nvc_building_id,nvc_column_id,NVC_ERA_NO,nvc_eqh_no,nvc_dzeh_no,nvc_fyh_no,DTM_BIRTH_DATE,nvc_variety_id,nvc_variety,nvc_strain,dcl_in_money,dbl_in_weight,nvc_birth_farm_id,nvc_birth_farm,nvc_fat_id,nvc_fat_ear_no,nvc_mot_id,nvc_mot_ear_no,int_left_papilla,int_right_papilla,nvc_ep_no,nvc_wh_no,nvc_gth_no,nvc_zzeh_no,nvc_product_state,int_parity,NVC_CHECK_STATE,NVC_APPLY_STATE,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM pig_hive.t_pigbreed_sow_rcrecord;
标签:24,DTM,05,NVC,2021,DATE,nvc,NULL,ID 来源: https://blog.csdn.net/qq_44104303/article/details/117221797