<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GF62'>
/****************************************************************************/
/* GF62 ( ﾌﾟﾛｼﾞｪｸﾄﾏｽﾀ定義 )                                                 */
/*                                                                          */
/* Created : 2017/07/31 15:48:55                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GF62 (
   PRJCODE      VARCHAR (   30 )                                            
 , NAME_JA      VARCHAR (  200 )                                            
 , COMPANY      VARCHAR (  200 )                                            
 , VIEW_DATE    VARCHAR (    8 )                                            
 , VIEW_ZOOM    VARCHAR (    2 )        DEFAULT '1'                         
 , VERNO        VARCHAR (   10 )                                            
 , DESCRIPTION  VARCHAR ( 4000 )                                            
 , CDJ          VARCHAR (    2 )                                            
 , YOSAN        DECIMAL (  9,2 )                                            
 , JISSEKI      INTEGER                                                     
 , COLOR        VARCHAR (   50 )                                            
 , 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 GF62S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GF62T00 FOR GF62
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GF62S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
