Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 


CATALOGMANAGER.deleterow

Deletes a row in a table using the CATALOGMANAGER command..

Syntax

Parameters

ftcmd (required)
Value must be set to deleterow.

tablename (required)
Name of the table containing the row to delete.

Delete uploaded file(s) (optional)
Value should be set to yes if upload files associated with row should be deleted. Default is no.

primarykey (optional)
primarykey is the column name of the primary key column. The value is the value of row's primary key.

tablekey (optional)
Use the tablekey parameter if you want to delete rows based on a value other than the primary key. The value of tablekey is the name of the column you use to perform the deletion. For example, if you want to delete a table based on the value in the title column, the tablekey parameter looks as follows:

tablekeyvalue (optional)
Value in the tablekey column of the row you want to delete. For example, if you want to delete a row with a value of Jaws in the title column, the tablekeyvalue parameter looks as follows:

This parameter is required only if the tablekey parameter is used.

Description

The deleterow command deletes a row in a table. There are two options that you can use to delete a row with this command:

Note

This is valid only if the primary key column does not have a variable set.

errno

The possible values of errno include:

Value
Description
-105
Database error.

Example

The following examples remove two rows from the Movie table.

id (primary key)
rating
title
1
G
Beauty and The Beast
2
PG
The Princess Bride
3
R
The Godfather

Example using the primary key column to delete a row:

Example using a column other than the primary key to delete a row:

After both rows have been removed, the table looks as follows:

id (primary key)
rating
title
3
R
The Godfather

See Also

addrow
deleterows

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.