<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE80'>
/****************************************************************************/
/* GE80 ( FAQﾃｰﾌﾞﾙ )                                                        */
/*                                                                          */
/* Created : 2020/02/28 14:39:38                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE80 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , SYSCODE      VARCHAR (   20 )        DEFAULT '*' NOT NULL                
 , KBFAQ        VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , QANO         VARCHAR (   20 )                    NOT NULL                
 , CDBNRUI      VARCHAR (   10 )                                            
 , KNRNGUI      VARCHAR (  200 )                                            
 , TITLE        VARCHAR (  300 )                                            
 , NAIYO        VARCHAR ( 4000 )                                            
 , SEQNO        INTEGER                 DEFAULT 0   NOT NULL                
 , TAG          VARCHAR (  200 )                                            
 , 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 GE80S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE80T00 FOR GE80
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE80S00,1 );
  END; </EXEC_SQL>
</ROWSET>
