<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE80'>
<EXEC_SQL>
/**************************************************************************/
/* GE80 ( FAQテーブル )                                                   */
/*                                                                        */
/* Created : 2012/06/01 18:24:30                                          */
/**************************************************************************/
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     BLOB                                       
 , SEQNO     NUMERIC(7)      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>
