Home > Contents > Index > 
CATALOGDEF
Queries a table for its column definition and stores the results in a list.
Syntax
<CATALOGDEF LIST="LIST_NAME" FROM="CATALOG_NAME"/>Parameters
LIST (required)- List to contain column information for the table.
FROM (required)- Name of the table.
Description
The
CATALOGDEFtag queries a table for its column definition and stores the results in a list.The list contains a row for each column in the table. The
KEYandFOREIGNvalues are identical for each row in the resultset. The column names are as follows:
KEYunknownif table is foreign).FOREIGNtrue". Otherwise, "false".COLNAMECOLTYPECOLTYPEcan be:text,integer,double binary,date/time,upload, orunknown.COLSIZEError Numbers
The possible values of
errnoinclude:
Example
This example displays the table definition of a table called
Images:<SETVAR NAME = "errno" VALUE = "0"/> <CATALOGDEF LIST="table" FROM="movies"/> Key: <CSVAR NAME="table.KEY"/><br/> Foreign: <CSVAR NAME="table.FOREIGN"/><br/> <RENAMELIST LIST="tbldef" FROM="table" /> <LOOP LIST="tbldef"> Colname: <CSVAR NAME="tbldef.COLNAME"/> <br/> Coltype: <CSVAR NAME="tbldef.COLTYPE"/> <br/> Colsize: <CSVAR NAME="tbldef.COLSIZE"/> <br/> </LOOP> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>
Home > Contents > Index > 
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.