I am a beginner with Interbase (always used Advantage and SQL Server) and I am now running into a problem that is probably very easy to fix, but I'm just not seeing it (nor can I find a usable hint in the documentation). Please consider the following (condensed script):
CREATE DOMAIN DOM_ID AS INTEGER;
CREATE TABLE Relatie (
ID DOM_ID NOT NULL,
RelatieNaam VARCHAR(100),
Bedrijf VARCHAR(40),
CONSTRAINT PK_RELATIE PRIMARY KEY (ID)
);
This script fails (using 'Prepare') with error message 'Dynamic SQL error. SQL Error code = -104. Token unknown - line 2, char 1 CREATE'.
I first thought creating the domain requires a Commit
but as per documentation that's not required here since it's a DDL statement.
What am I doing wrong / am I overlooking?