<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GF70'>
/****************************************************************************/
/* GF70 ( JSPﾁｪｯｸ結果ﾃｰﾌﾞﾙ )                                                */
/*                                                                          */
/* Created : 2022/11/10 17:41:04                                            */
/****************************************************************************/
<EXEC_SQL exists="0">
SELECT COUNT(*) FROM USER_TABLES WHERE TABLE_NAME=UPPER('GF70');
CREATE TABLE GF70 (
   SYSTEM_ID    VARCHAR2 (  10 )                    NOT NULL            /*  10 ｼｽﾃﾑID       */
 , TBLSYU       VARCHAR2 (   1 )                    NOT NULL            /*  20 ﾃｰﾌﾞﾙ種別    */
 , ADDRESS      VARCHAR2 ( 256 )                                        /*  30 ｱﾄﾞﾚｽ        */
 , FILENAME     VARCHAR2 (  60 )                                        /*  40 ﾌｧｲﾙ名       */
 , FILEPATH     VARCHAR2 ( 256 )                                        /*  50 ﾌｧｲﾙﾊﾟｽ      */
 , MODIFIED     VARCHAR2 (  14 )                                        /*  60 最終更新日時 */
 , TAGNAME      VARCHAR2 (  30 )                                        /*  80 ﾀｸﾞ名称      */
 , MSGCD        VARCHAR2 (  20 )                                        /*  90 ﾒｯｾｰｼﾞID     */
 , MSGTXT       VARCHAR2 ( 500 )                                        /* 100 内容         */
 , TEXT_DATA    CLOB                                                    /* 110 ﾃｷｽﾄ         */
 , FGOMIT       VARCHAR2 (   1 )        DEFAULT '0' NOT NULL            /* 120 除外ﾌﾗｸﾞ     */
 , UNIQ         NUMBER   (   9 )        DEFAULT 0   NOT NULL            /* 800 ﾕﾆｰｸｷｰ       */
 , FGJ          VARCHAR2 (   1 )        DEFAULT '1' NOT NULL            /* 810 状態ﾌﾗｸﾞ     */
 , DYSET        VARCHAR2 (  14 )                                        /* 820 作成日時     */
 , PGSET        VARCHAR2 (  50 )                                        /* 830 作成PG       */
 , PGPSET       VARCHAR2 (  50 )                                        /* 840 作成親PG     */
 , USRSET       VARCHAR2 (  30 )                                        /* 850 作成者       */
 , DYUPD        VARCHAR2 (  14 )                                        /* 860 更新日時     */
 , PGUPD        VARCHAR2 (  50 )                                        /* 870 更新PG       */
 , PGPUPD       VARCHAR2 (  50 )                                        /* 880 更新親PG     */
 , USRUPD       VARCHAR2 (  30 )                                        /* 890 更新者       */
)
TABLESPACE GETBL01
STORAGE( INITIAL 16K );
</EXEC_SQL>

<EXEC_SQL exists="0">
SELECT COUNT(*) FROM USER_SEQUENCES WHERE SEQUENCE_NAME=UPPER('GF70S00');
CREATE SEQUENCE GF70S00 
  INCREMENT BY 1 START WITH 1 MAXVALUE 999999999 CYCLE NOCACHE;
</EXEC_SQL>

<EXEC_SQL>
CREATE OR REPLACE TRIGGER GF70T00 
  BEFORE INSERT ON GF70
  FOR EACH ROW 
  BEGIN 
    SELECT GF70S00.NEXTVAL INTO :NEW.UNIQ FROM DUAL; 
  END; 
</EXEC_SQL>
</ROWSET>
