<og:query command="{@command}" debug="{@debug}" maxRowCount="10000" stopZero="true">
	select	RENDERER,EDITOR,DBTYPE,TABLE_NAME,SEQNO,CLM,NAME_JA,CLS_NAME,
			USE_LENGTH,NOT_NULL,DATA_DEFAULT,FGCOM,BIKO,SYSTEM_ID,FGJ,UNIQ
	from GF05
	where SYSTEM_ID  = '{@SYSTEM_ID}'
	and   TBLSYU     = '{@TBLSYU}'
	and   TABLE_NAME like '{@TABLE_NAME}%'
	and   CLM        like '{@CLM}%'
	and   FGCOM     != '9'
	and   FGJ in ('0','1')
	and (
		RENDERER is NULL or EDITOR is null or DBTYPE is null
	    or not exists (
				select 'X' from GEA04
				where SYSTEM_ID = '**'
				and   FGJ in ('0','1')
				and   CLM  = 'RENDERER'
				and   CODE = GF05.RENDERER )
	    or not exists (
				select 'X' from GEA04
				where SYSTEM_ID = '**'
				and   FGJ in ('0','1')
				and   CLM  = 'EDITOR'
				and   CODE = GF05.EDITOR )
	    or not exists (
				select 'X' from GEA04
				where SYSTEM_ID = '**'
				and   FGJ in ('0','1')
				and   CLM  = 'DBTYPE'
				and   CODE = GF05.DBTYPE )
	)
	order by SYSTEM_ID,CLM,TABLE_NAME
</og:query>

<og:tableFilter classId="CLMSET" keys="SYSTEM_ID,LANG" vals="{@SYSTEM_ID},ja" />

<og:hidden name="SQL" >
	UPDATE GF05 SET
			TBLSYU 			= '3',
			SEQNO			= [SEQNO],
			CLM 			= [CLM],
			NAME_JA 		= [NAME_JA],
			CLS_NAME		= [CLS_NAME],
			USE_LENGTH		= [USE_LENGTH],
			NOT_NULL		= [NOT_NULL],
			RENDERER		= [RENDERER],
			EDITOR			= [EDITOR],
			DBTYPE			= [DBTYPE],
			DATA_DEFAULT	= [DATA_DEFAULT],
			FGCOM			= [FGCOM],
			BIKO			= [BIKO],
			SYSTEM_ID		= [SYSTEM_ID],
			CDKH			= 'C',
			FGJ				= '1',
			DYUPD			= '{@USER.YMDH}',
			USRUPD			= '{@USER.ID}',
			PGUPD			= '{@GUI.KEY}'
	WHERE UNIQ  = [UNIQ]
</og:hidden>

<og:hidden name="noWritable">SYSTEM_ID,TABLE_NAME</og:hidden>
