Menu Content/Inhalt
Home arrow Projects
Table of Contents

Problem Description

Assuming that there is a table called cities with fields name (varchar), population (float) and altitude(int) in the Postgresql database isco1), we can build the following ISCO class:

Class Definition

mutable class cities.

name: text.

population: float.

altitude: int.

Goals

Insert

?- cities(’Lisboa’, 20000, 300) :+ .

Query

?- cities(X, Y, Z).

X = ‘Lisboa’ Y = 20000.0 Z = 300 ?

Update

Delete

?- cities(’Lisboa’, 20000.0, 300) :\ .

1) The default database name is isco.
 
· start/isco/examples/cities.txt (766 views) · Last modified on 8/18/2006 at 19:18
 
Recent changes RSS feed Driven by DokuWiki