<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE66'>
/****************************************************************************/
/* GE66 ( 受信管理テーブル )                                                */
/*                                                                          */
/* Created : 2020/02/28 14:39:38                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE66 (
   SYSTEM_ID    VARCHAR         (  100 )                    NOT NULL                
 , YKNO         BIGINT                                      NOT NULL                
 , QUEUEID      VARCHAR         (  100 )                    NOT NULL                
 , SFDUPID      VARCHAR         (  100 )                                            
 , MESSAGE      BLOB SUB_TYPE 1                                                     
 , FGKAN        VARCHAR         (    1 )                    NOT NULL                
 , ERRMSG       VARCHAR         ( 1000 )                                            
 , 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 GE66S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE66T00 FOR GE66
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE66S00,1 );
  END; </EXEC_SQL>
</ROWSET>
