<og:query command="{@command}" debug="{@debug}" maxRowCount="10000" stopZero="true">
	select	CLM,RENDERER,EDITOR,DBTYPE,USE_LENGTH,TABLE_NAME,NAME_JA,SEQNO,CLM_NAME,'' as DTYPE,CLS_NAME,
			PHY_LENGTH,UK,LUK,IXA,IXB,IXC,IXD,IXE,IXF,IXG,IXH,IXI,IXJ,IXK,NOT_NULL,C_KEY,F_KEY,
			DATA_DEFAULT,KBCLM,BIKO,SYSTEM_ID,FGJ,UNIQ
	from GF80
	where SYSTEM_ID  = '{@SYSTEM_ID}'
	and   TBLSYU      = '3'
	and   TABLE_NAME like '{@TABLE_NAME}%'
	and   CLM        like '{@CLM}%'
	and   KBCLM     != '9'
	and   FGJ in ('0','1')
	and (
			(
				(
						RENDERER not in ( 'MENU','DBMENU','CHBOX' )
					or	EDITOR   not in ( 'MENU','DBMENU','CHBOX' )
				)
				and   TO_NUMBER(REPLACE(NVL(USE_LENGTH,'0'),',','.'),999.9) < 3
				and	(
						CLM like 'FG%'
					or  CLM like 'CD%'
					or  CLM like 'KB%'
				)
			)
		or
			(
				CLS_NAME  != 'NUMBER'
				and	(
						CLM like 'SU%'
					or  CLM like 'KN%'
					or  CLM like 'TK%'
					or  CLM like 'SEQ%'
				)
			)
		or
			(
				CLS_NAME  != 'VARCHAR2'
				and	(
						CLM like 'NM%'
					or  CLM like 'KJ%'
					or  CLM like 'FG%'
					or  CLM like 'KB%'
					or  CLM like 'CD%'
					or  CLM like 'DY%'
				)
			)
		or
			(
				(
						RENDERER not in ( 'YMD','YMDH','MD','YM','DATE' )
					or	EDITOR   not in ( 'YMD','YMDH','MD','YM','DATE' )
					or	DBTYPE   not in ( 'YMD','YMDH','MD','YM','DATE' )
				)
				and	(
						CLM like 'DY%'
				)
			)
		)
	order by SYSTEM_ID,CLM,TABLE_NAME
</og:query>

<og:hidden name="SQL" >
	UPDATE GF80 SET
			TBLSYU 			= '3',
			NAME_JA 		= [NAME_JA],
			SEQNO			= [SEQNO],
			CLM_NAME		= [CLM_NAME],
			CLM 			= [CLM],
			CLS_NAME		= [CLS_NAME],
			PHY_LENGTH		= [PHY_LENGTH],
			USE_LENGTH		= [USE_LENGTH],
			UK				= [UK],
			LUK				= [LUK],
			IXA				= [IXA],
			IXB				= [IXB],
			IXC				= [IXC],
			IXD				= [IXD],
			IXE				= [IXE],
			IXF				= [IXF],
			IXG				= [IXG],
			IXH				= [IXH],
			IXI				= [IXI],
			IXJ				= [IXJ],
			IXK				= [IXK],
			NOT_NULL		= [NOT_NULL],
			C_KEY			= [C_KEY],
			F_KEY			= [F_KEY],
			RENDERER		= [RENDERER],
			EDITOR			= [EDITOR],
			DBTYPE			= [DBTYPE],
			DATA_DEFAULT	= [DATA_DEFAULT],
			KBCLM			= [KBCLM],
			BIKO			= [BIKO],
			COMMENTS		= [COMMENTS],
			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,DTYPE</og:hidden>
