<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE80'>
<EXEC_SQL>
/**************************************************************************/
/* GE80 ( FAQテーブル )                                                   */
/*                                                                        */
/* Created : 2013/03/27 19:06:23                                          */
/**************************************************************************/
CREATE TABLE GE80 (
   UNIQ      BIGINT                       NOT NULL       
 , 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)                                
 , 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>
