#Retract doesn't change the database#
Hi i have a database in Prolog consisting of simple facts:
:-dynamic sportsmen/2.
sportsmen('Andrew', 'Shaw').
sportsmen('Patrick', 'Kane').
Now i want to retract some facts from it. Problem is, when i call
retract(sportsmen(_,'Kane'))
it returns true, but there is no change in my database, i tried to find a solution here and i found some guy that has this problem a was adviced to look at predicate tell/1. I know what this predicate is doing but i cant figure out how can i write back to database all the remaining facts excepts of the one i want to delete.
Can anyone help?