<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
	select	TABLE_NAME,SEQNO,CLM,NAME_JA,CLS_NAME,
			USE_LENGTH,RENDERER,EDITOR,DBTYPE,
			NOT_NULL,DATA_DEFAULT,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   FGJ in ('0','1')
	and   CLM in (
		select CLM from (
			select	CLM,NAME_JA,CLS_NAME,USE_LENGTH,RENDERER,EDITOR,DBTYPE,DATA_DEFAULT
			from GF05
			where SYSTEM_ID  = '{@SYSTEM_ID}'
			and   TBLSYU     = '{@TBLSYU}'
			and   TABLE_NAME like '{@TABLE_NAME}%'
			and   CLM        like '{@CLM}%'
			and   FGJ in ('0','1')
			group by CLM,NAME_JA,CLS_NAME,USE_LENGTH,RENDERER,EDITOR,DBTYPE,DATA_DEFAULT
		) B
		group by CLM
		having count(*) > 1
	)
	order by SYSTEM_ID,CLM,TABLE_NAME
</og:query>

<og:hidden name="SQL" >
  <jsp:text>
	UPDATE GF05 SET
			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],
			BIKO			= [BIKO],
			SYSTEM_ID		= [SYSTEM_ID],
			CDKH			= 'C',
			FGJ				= '1',
			DYUPD			= '{@USER.YMDH}',
			USRUPD			= '{@USER.ID}',
			PGUPD			= '{@GUI.KEY}'
	WHERE UNIQ  = [UNIQ]
  </jsp:text>
</og:hidden>

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