<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE81'>
/****************************************************************************/
/* GE81 ( 新着情報ﾃｰﾌﾞﾙ )                                                   */
/*                                                                          */
/* Created : 2018/06/08 16:45:35                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE81 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , SYSCODE      VARCHAR (   20 )        DEFAULT '*' NOT NULL                
 , CDDEG        VARCHAR (    1 )                                            
 , TITLE        VARCHAR (  300 )                                            
 , NAIYO        VARCHAR ( 4000 )                                            
 , DYSTRD       VARCHAR (    8 )                    NOT NULL                
 , DYENDD       VARCHAR (    8 )                    NOT NULL                
 , BUSHOD       VARCHAR (  100 )                                            
 , MAND         VARCHAR (   50 )                                            
 , TEL          VARCHAR (   20 )                                            
 , MAILAD       VARCHAR (  100 )                                            
 , FILE1        VARCHAR (  200 )                                            
 , FILE2        VARCHAR (  200 )                                            
 , FILE3        VARCHAR (  200 )                                            
 , FILEPATH     VARCHAR (  200 )                                            
 , 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 GE81S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE81T00 FOR GE81
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE81S00,1 );
  END; </EXEC_SQL>
</ROWSET>
