<jsp:directive.page pageEncoding="UTF-8" />
<!-- PostgreSQL 版 -->
<og:equals val1="{@DBF.NAME @DBID}" val2="POSTGRES">
  <og:value command="SET" key="TABLES" >
		select TABLENAME
		from PG_TABLES
		where  TABLENAME  like '{@TBL_NAME}'
		and    SCHEMANAME = 'public'
		order by TABLENAME
  </og:value>
</og:equals>

<!-- ORACLE 版 -->
<og:equals val1="{@DBF.NAME @DBID}" val2="ORACLE">
  <og:value command="SET" key="TABLES" >
		select A.TABLE_NAME,
			   A.TABLE_NAME || ' : ' || COALESCE(B.COMMENTS,A.TABLE_NAME) || ' ( ' || A.NUM_ROWS || ' )' AS NAME_JA
		from USER_TABLES A left outer join USER_TAB_COMMENTS B
				on A.TABLE_NAME = B.TABLE_NAME
		where  INSTR(A.TABLE_NAME,'$') < 1
		and    A.TABLE_NAME like '{@TBL_NAME}'
		order by A.TABLE_NAME
  </og:value>
</og:equals>

<!-- FIREBIRD 版 -->
<og:equals val1="{@DBF.NAME @DBID}" val2="FIREBIRD">
  <og:value command="SET" key="TABLES" >
		select trim(RDB$RELATION_NAME)
		from RDB$RELATIONS
		where RDB$SYSTEM_FLAG   = 0 
		and   RDB$RELATION_TYPE = 0 
		and   RDB$RELATION_NAME like '{@TBL_NAME}'
		order by RDB$RELATION_NAME
  </og:value>
</og:equals>
