sancho1980
Technical User
Hello
I was trying to create an interbase table with the following sql statement:
CREATE DOMAIN "TSTR100" AS VARCHAR(100);
CREATE DOMAIN "TSTR10" AS VARCHAR(10);
CREATE DOMAIN "TSTR15" AS VARCHAR(15);
CREATE DOMAIN "TSTRMAX" AS VARCHAR(32000);
CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
);
When I execute that, I get the following message:
Dynamic SQL Error
SQL error code = -607
Invalid command
Specified domain or source column does not exist
Statement: CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
)
Does any of you know what's wrong with that statement?
Thanx,
Martin
I was trying to create an interbase table with the following sql statement:
CREATE DOMAIN "TSTR100" AS VARCHAR(100);
CREATE DOMAIN "TSTR10" AS VARCHAR(10);
CREATE DOMAIN "TSTR15" AS VARCHAR(15);
CREATE DOMAIN "TSTRMAX" AS VARCHAR(32000);
CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
);
When I execute that, I get the following message:
Dynamic SQL Error
SQL error code = -607
Invalid command
Specified domain or source column does not exist
Statement: CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
)
Does any of you know what's wrong with that statement?
Thanx,
Martin