Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > ADO DB Driver > Functions
delete/4
Description
delete/4 is an Erlang function exported by "ado" module.
Prepares and executes a DELETE statement.
The function internally calls execute/6 with default parameters.
References
•execute/6
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
> ado:delete(123456789, users, "user_id=?", [1025]).