<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE72'>
/****************************************************************************/
/* GE72 ( ﾌｧｲﾙﾚｲｱｳﾄﾃｰﾌﾞﾙ )                                                  */
/*                                                                          */
/* Created : 2017/07/18 08:41:53                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE72 (
   SYSTEM_ID        VARCHAR (   10 )                    NOT NULL                
 , TORIID           VARCHAR (   20 )                    NOT NULL                
 , NAME_LAY         VARCHAR (  200 )                                            
 , SEQNO            INTEGER                 DEFAULT 0   NOT NULL                
 , CLM              VARCHAR (   30 )                    NOT NULL                
 , NAME_JA          VARCHAR (  200 )                                            
 , KBTYPE           VARCHAR (    1 )                    NOT NULL                
 , START_POS        INTEGER                             NOT NULL                
 , USE_LENGTH       VARCHAR (    9 )                                            
 , CNST_VAL         VARCHAR ( 2000 )                                            
 , CHKRES           VARCHAR (    1 )                    NOT NULL                
 , CHKNULL          VARCHAR (    1 )                    NOT NULL                
 , FGNBREAK         VARCHAR (    1 )                    NOT NULL                
 , FGNSKIP          VARCHAR (    1 )                    NOT NULL                
 , FGOMIT           VARCHAR (    1 )                    NOT NULL                
 , FGUSE            VARCHAR (    1 )                    NOT NULL                
 , RELEASE_NOTES    VARCHAR (  120 )                                            
 , RDC_CODE         VARCHAR (   20 )                                            
 , UNIQ             BIGINT                              NOT NULL                
 , FGJ              VARCHAR (    1 )                    NOT NULL                
 , DYSET            VARCHAR (   14 )                                            
 , PGSET            VARCHAR (   10 )                                            
 , PGPSET           VARCHAR (   10 )                                            
 , USRSET           VARCHAR (   10 )                                            
 , DYUPD            VARCHAR (   14 )                                            
 , PGUPD            VARCHAR (   10 )                                            
 , PGPUPD           VARCHAR (   10 )                                            
 , USRUPD           VARCHAR (   10 )                                            
)
</EXEC_SQL>

<EXEC_SQL>
CREATE SEQUENCE GE72S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE72T00 FOR GE72
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE72S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
