dbdelete()

Description: removes one or more rows from a database table

Syntax: dbdelete(f [, [criteria]])

Parameters:

Note: if criteria parameter is omitted dbdelete() is going to empty the table.
 
 
dbdelete(f)  # to empty table f (dangerous!)
dbdelete(f,) # equivalent to dbdelete(f)

Code Example
procedure main()
 f:=open("mysql","O","test","fbalbi","mypass") # open table test

 dbdelete(f,"id=25") # delete row(s) with column id=25

 close(f) # close table
end