This commit is contained in:
Brieuc Dubois 2024-03-10 14:40:10 +01:00
parent fed10a2a25
commit 2cf01ac3ae
1 changed files with 5 additions and 1 deletions

View File

@ -113,7 +113,11 @@ prompt, but which may include selectors. Selectors are terms of the form
+<column>where <column>should be replaced by a column name.
(See tests.pl for some concrete usage examples.)
*/
/* delete(Table, Conds). */
delete(Table, Conds) :-
(tabl(Table, _) ->
(rows(tables, Row), \+ (member(Cond, Conds), \+ Cond) -> retract(Row); true);
throw("Table doesn't exist")
).
:- dynamic selec/4.
/*