<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GEA06'>
/****************************************************************************/
/* GEA06 ( ﾃﾞｰﾀﾛｰﾙﾏｽﾀ )                                                     */
/*                                                                          */
/* Created : 2014/12/27 18:21:11                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GEA06 (
   SYSTEM_ID    VARCHAR (  10 )                 NOT NULL                
 , DROLE        VARCHAR (  20 )                 NOT NULL                
 , CLM          VARCHAR (  30 )                 NOT NULL                
 , CVALUE       VARCHAR ( 200 )                 NOT NULL                
 , VALCDTN      VARCHAR (  10 )                 NOT NULL                
 , UNIQ         BIGINT                          NOT NULL                
 , FGJ          VARCHAR (   1 )     DEFAULT '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 GEA06S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GEA06T00 FOR GEA06
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GEA06S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
