Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > TDS DB Driver > Functions
delete/4
Description
delete/4 is an Erlang function exported by "tds" module.
Prepares and executes a DELETE statement.
The function internally calls execute/4 with default parameters.
References
•execute/4
Parameters
Name
Type
Handle
integer()
Database handle.
Table
atom()
Table name specified as an atom, not a string.
Where
string()
String part of the where clause of SQL statement. Defaults to "".
Values
[]
List of substitution terms within the Where clause. Defaults to [].
Result
Value or Type
{sql_result, []}
Code Sample
> tds:delete(123456789, users, "user_id=?", [1025]).