willy
unread,Nov 21, 2021, 4:07:10 AM11/21/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to h2-da...@googlegroups.com
Hi,
The following works in 1.4.200, but gives the following error in
1.4.201 :
Any ideas ?
Kind regards
Willy
Constraint "PRIMARY KEY | UNIQUE (TYPES)" not found; SQL statement:
CREATE TABLE FCOUNTS( ID IDENTITY primary key , NR VARCHAR,
NAME VARCHAR, TYPES VARCHAR, TAG VARCHAR, Foreign key(types)
references ftypes(types), Foreign key(tag) references ftags(tag) )
Code :
create table ftypes(
ID IDENTITY primary key ,
types VARCHAR
);
create unique index ftype_idx on ftypes(types);
create table ftags(
ID IDENTITY primary key ,
tag VARCHAR
);
create unique index ftag_idx on fintags(tag);
CREATE TABLE FCOUNTS(
ID IDENTITY primary key ,
NR VARCHAR,
NAME VARCHAR,
TYPES VARCHAR,
TAG VARCHAR,
Foreign key(types) references ftypes(types),
Foreign key(tag) references ftags(tag)
);