| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: database: prolog and relational
Tony Douglas wrote:
> I haven't been following the thread too closely, but I could offer
> some comments which may (or probably may not) be helpful. ...
Thank you.
Long ago first I toyed with prolog on a
Sinclair ZX spectrum (48k RAM, incredible
that it actually worked), and later more
on a PC. Somehow I never got to do any
serious work with it. When I learned about
databases I had the feeling that databases
and prolog would be an excellent commercial
match - but it never really happened.
So much about my intuitions :-)
> I'm pondering whether I can assert duplicate facts.
> I don't think there's anything to stop me but
> I've never intentionally done such a thing ;)
You are right:
For help, use ?- help(Topic). or ?- apropos(Word).
1 ?- assert(fact(x)).
Yes
2 ?- assert(fact(x)).
Yes
3 ?- retract(fact(A)).
A = x
Yes
4 ?- retract(fact(A)).
A = x
Yes
5 ?- retract(fact(A)).
No
![]() |
![]() |