CREATE OR REPLACE FUNCTION insert_r_seikyu()
  RETURNS trigger AS $$
begin
insert into dat_rd_seikyu (
    rirekino
,sakujofg
    , seikyuno
    , tokuisakicd
    , shimebi
    , seikyubi
    , nyukinyoteibi
    , seikyugaku
    , hikazeikingaku
    , shohizeiritsu1
    , kazeitaishogaku1
    , shohizeigaku1
    , shohizeiritsu2
    , kazeitaishogaku2
    , shohizeigaku2
    , maeukeseikyugaku
    , biko
    , shanaibiko
    , shoninnichiji
    , shoninshaid
    , insatsukaisu
    , sakuseiuserid
    , sakuseinichiji
    , koshinuserid
    , koshinnichiji
) values (
nextval('sqns_seikyurirekino')
,false
    , new.seikyuno
    , new.tokuisakicd
    , new.shimebi
    , new.seikyubi
    , new.nyukinyoteibi
    , new.seikyugaku
    , new.hikazeikingaku
    , new.shohizeiritsu1
    , new.kazeitaishogaku1
    , new.shohizeigaku1
    , new.shohizeiritsu2
    , new.kazeitaishogaku2
    , new.shohizeigaku2
    , new.maeukeseikyugaku
    , new.biko
    , new.shanaibiko
    , new.shoninnichiji
    , new.shoninshaid
    , new.insatsukaisu
    , new.sakuseiuserid
    , new.sakuseinichiji
    , new.koshinuserid
    , new.koshinnichiji  );
return new;
end;
$$
LANGUAGE plpgsql;
