<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GF27'>
/****************************************************************************/
/* GF27 ( 逆引ｷﾏﾆｭｱﾙ )                                                      */
/*                                                                          */
/* Created : 2021/06/29 14:04:06                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GF27 (
   SEQ          INTEGER                         DEFAULT 0   NOT NULL                
 , TITLE        VARCHAR         (  300 )                    NOT NULL                
 , ANSWER       VARCHAR         (  200 )                                            
 , DIFFICULTY   VARCHAR         (    1 )                                            
 , PARTNO       INTEGER                                                             
 , PART         VARCHAR         (  100 )                                            
 , CHAPTERNO    INTEGER                                                             
 , CHAPTER      VARCHAR         (  100 )                                            
 , BIG_CLASS    VARCHAR         (  100 )                                            
 , INSIDE_CLASS VARCHAR         (  100 )                                            
 , KEYWORD      VARCHAR         (  200 )                                            
 , CONTENTS     BLOB SUB_TYPE 1                                                     
 , SAMPLE       VARCHAR         ( 4000 )                                            
 , URL          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 GF27S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GF27T00 FOR GF27
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GF27S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
