Google News
logo
HSQLDB - Interview Questions
How do you specify a primary key constraint in an HSQLDB table?
You can specify a primary key constraint in an HSQLDB table by including the PRIMARY KEY keyword followed by the column name(s) in parentheses after the column definition. For example:
CREATE TABLE table_name (
column1 INT PRIMARY KEY,
column2 VARCHAR(50) NOT NULL,
…
);?
Advertisement