I have been following a Base tutorial where it was possible to paste in multiple SQL statements into the Execute SQL Window separated by semicolon. However I always get an error when I try. The tutorial used version 4.x of LO and the previous SQL engine.
CREATE TABLE “Members” (
“ID” INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
“FirstName” VARCHAR(20) NOT NULL ,
“LastName” VARCHAR(20) NOT NULL,
“EmailName” VARCHAR(20),
“EmailDomain” VARCHAR(20),
“DateJoined” DATE );
INSERT INTO “Members” (“FirstName”, “LastName”, “EmailName”, “EmailDomain”)
VALUES (‘test’,‘user2’,‘testuser2’,‘soroban.co.uk’);
Error report
1: firebird_sdbc error:
*Dynamic SQL Error
*SQL error code = -104
*Token unknown - line 9, column 1
*INSERT
caused by
‘isc_dsql_prepare’
If I enter these SQL statements one at a time they work.
I am an experienced programmer (55+ years), very experienced with Excel including extensive use of macros, but I am attempting to use a relational database for the first time. This is just to enter my test data so I can work round it but is there a solution?