Re: Prolog to SQL ..??
- From: russell kym horsell <kym@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 02:50:17 +0000 (UTC)
W <wgw at cruzio dot com> wrote:
> They look similar because they are based on relations. however there are a
> lot of differences in the details.
[...]
There are lots of nice tricks, but translating Prolog to SQL is not
so strange if you just treat SQL like an assembly language ;-) and use
bottom-up evaluation when appropriate.
There are obviously times when a Prolog clause or 2 can be translated
almost verbatim into some other relational calculus (SQL, loosley),
but a more general purpose translation has to abandone the idea that
the resulting SQL "looks like" it's doing what the original Prolog was
doing and/or in much the same way.
If you want something REALLY tedious, try Prolog to Yacc.
.
- Follow-Ups:
- Re: Prolog to SQL ..??
- From: Bore Biko
- Re: Prolog to SQL ..??
- References:
- Prolog to SQL ..??
- From: Robert Bralic
- Re: Prolog to SQL ..??
- From: Robert Bralic
- Re: Prolog to SQL ..??
- From: Mauro Di Nuzzo
- Re: Prolog to SQL ..??
- From: Robert Bralic
- Re: Prolog to SQL ..??
- From: Robert Bralic
- Re: Prolog to SQL ..??
- From: Robert Bralic
- Re: Prolog to SQL ..??
- From: W
- Prolog to SQL ..??
- Prev by Date: Re: sudoku
- Next by Date: Re: sudoku
- Previous by thread: Re: Prolog to SQL ..??
- Next by thread: Re: Prolog to SQL ..??
- Index(es):
Relevant Pages
|