How to: SQL default values into a table.
Using LibreOffice Community 7.1.3.2 (x86) on Windows 10.0, split HSQLDB
2.3.2 how may I create tables with field values set to a default value?
Thank you!
CREATE TABLE “Test”(
“id” INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,
/* start at 1 instead of 0 to match Firefox */
“Code” VARCHAR(3),
/* I want Code to default to “903” */
“City_FK” INTEGER NOT NULL
/* This FK should default to “1” */
)