<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE20'>
/****************************************************************************/
/* GE20 ( ﾕｰｻﾞｰﾛｰﾙ設定値ﾃｰﾌﾞﾙ )                                             */
/*                                                                          */
/* Created : 2017/07/18 08:41:53                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE20 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , USERID       VARCHAR (   10 )                    NOT NULL                
 , ROLES        VARCHAR ( 2000 )                    NOT NULL                
 , PARAM_ID     VARCHAR (   50 )                    NOT NULL                
 , PARAM        VARCHAR ( 4000 )                                            
 , KBSET        VARCHAR (    1 )        DEFAULT '0' 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 GE20S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE20T00 FOR GE20
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE20S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
