<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE32'>
/****************************************************************************/
/* GE32 ( 送信履歴ﾃｰﾌﾞﾙ )                                                   */
/*                                                                          */
/* Created : 2020/02/28 14:39:38                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE32 (
   YKNO         INTEGER                     DEFAULT 0   NOT NULL                
 , PARA_KEY     VARCHAR         (   9 )                                         
 , PTN_ID       VARCHAR         (  20 )                                         
 , SYSTEM_ID    VARCHAR         (  10 )                 NOT NULL                
 , FROM_ADDR    VARCHAR         ( 100 )                 NOT NULL                
 , TITLE        VARCHAR         ( 300 )                                         
 , CONTENTS     BLOB SUB_TYPE 1                                                 
 , ATTACH1      VARCHAR         ( 256 )                                         
 , ATTACH2      VARCHAR         ( 256 )                                         
 , ATTACH3      VARCHAR         ( 256 )                                         
 , ATTACH4      VARCHAR         ( 256 )                                         
 , ATTACH5      VARCHAR         ( 256 )                                         
 , 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 GE32S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE32T00 FOR GE32
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE32S00,1 );
  END; </EXEC_SQL>
</ROWSET>
