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.
Projects