mysql_delete: Wrapper for removing rows from a MySQL table, on the matching...

Description Usage Arguments Value Author(s) See Also

Description

mysql_delete is a simple wrapper around RMySQL that allows a useR to remove records from a table in one of the analytics-store.eqiad.wmnet databases.

Usage

1
mysql_delete(db, table, conditional = NULL)

Arguments

db

a database

table

the name of the table

conditional

a conditional statement (beginning 'WHERE...') for the row deletion. NULL by default, which deletes the entire contents of the table.

Value

A TRUE (or an error)

Author(s)

Oliver Keyes <okeyes@wikimedia.org>

See Also

mysql_query for reading from the same range of databases, mysql_write for writing to them, or mysql_exists for checking the existence of a table.


wikimedia-research/WMUtils documentation built on May 4, 2019, 5:23 a.m.