Home > Contents > Index >
CATALOGMANAGER.deleterows
Deletes multiple rows in a table using the
CATALOGMANAGERcommand.Syntax
<CATALOGMANAGER>
<ARGUMENT NAME="ftcmd" VALUE="deleterows" /> <ARGUMENT NAME="tablename" VALUE="table" /> <ARGUMENT NAME="primarykeyN" VALUE="keyvalue"/> [<ARGUMENT NAME="Delete uploaded file(s)" VALUE="yes|no"/>]</CATALOGMANAGER>Parameters
ftcmd (required)- Values must be set to
deleterows.
tablename (required)- Name of the table containing the rows to delete.
primarykeyN (required)- Value of row's primary key. The
primarykeyparameter is the primary key's column name. The value ofNcorresponds to the row number--in the resultset--that you want to delete.
Delete uploaded file(s)(optional)- Value should be set to
yesif upload files associated with row should be deleted. Default isno.
Description
The deleterows command deletes rows in a table. You can also delete uploaded files.
Error Numbers
The possible values of
errnoinclude:
Value Description -105 Database error.Example
The following example deletes two rows from the
TopMoviestable:
id director title133charlie chaplinmodern times137buster keatonthe general145clint eastwooda perfect world148rob reinerthe princess brideTo delete two rows from this table, use the following code:
<SETVAR NAME="errno" VALUE="0"/> <CATALOGMANAGER> <ARGUMENT NAME="ftcmd" VALUE="deleterows"/> <ARGUMENT NAME="tablename" VALUE="TopMovies"/> <ARGUMENT NAME="id0" VALUE="137"/> <ARGUMENT NAME="id1" VALUE="145"/> </CATALOGMANAGER> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.