INSERT INTO T_BOTP_TABLEDEFINE(FID,FMAINENTITYKEY,FENTRYKEY,FTABLENAME,FTABLEID) SELECT T1.FENTRYID,T1.FID,T1.FENTITYKEY,T1.FTABLENAME,T1.FTABLEID  FROM T_META_ENTITYINFO T1 WHERE T1.FTABLEID not in (SELECT T2.FTABLEID FROM T_BOTP_TABLEDEFINE T2);