Perhaps there should be a special section for discussing Rel vs Tutorial D differences. IWBNI the one mentioned in my subject line were resolved one day!
I mean something like:
VAR S BASE RELATION { S# CHAR, Sname CHAR,
Status INTEGER, City CHAR}
KEY { S# }
INIT ( RELATION {
TUPLE { S# 'S1', Sname 'Smith',
City 'London',
Status 20 }
} ) ;
Hugh
Tutorial D INIT clause still not supported on base relvars
-
- Posts: 126
- Joined: Sat May 24, 2008 4:49 pm
Re: Tutorial D INIT clause still not supported on base relvars
The Tutorial D grammar specifies that a <real relation var def> ::= VAR <relation var name> <real or base> <relation type or init value> <candidate key def>.
Therefore, the above should be:
I think you'll find it works.
Therefore, the above should be:
Code: Select all
VAR S BASE RELATION { S# CHAR, Sname CHAR,
Status INTEGER, City CHAR}
INIT ( RELATION {
TUPLE { S# 'S1', Sname 'Smith',
City 'London',
Status 20 }
} )
KEY { S# } ;