<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GEA08'>
/****************************************************************************/
/* GEA08 ( 項目名称定義(ﾗﾍﾞﾙ) )                                             */
/*                                                                          */
/* Created : 2020/02/28 14:39:38                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GEA08 (
   SYSTEM_ID        VARCHAR (   10 )                    NOT NULL                
 , LANG             VARCHAR (    2 )                    NOT NULL                
 , CLM              VARCHAR (   30 )                    NOT NULL                
 , NAME_JA          VARCHAR (  200 )                                            
 , SNAME            VARCHAR (   60 )                                            
 , LNAME            VARCHAR (  500 )                                            
 , DESCRIPTION      VARCHAR ( 4000 )                                            
 , KBLBL            VARCHAR (    1 )                    NOT NULL                
 , COMMENTS         VARCHAR (  500 )                                            
 , CDKH             VARCHAR (    1 )                                            
 , FGLOAD           VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , KBSAKU           VARCHAR (    1 )        DEFAULT '1' NOT NULL                
 , RELEASE_NOTES    VARCHAR (  120 )                                            
 , RDC_CODE         VARCHAR (   20 )                                            
 , 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 GEA08S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GEA08T00 FOR GEA08
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GEA08S00,1 );
  END; </EXEC_SQL>
</ROWSET>
