H2 DDL Operations

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Create Table

CREATE TABLE <table-name>(<primary-key-column-name> INT PRIMARY KEY, <column-1-name> VARCHAR(255));
CREATE TABLE TEST (ID INT PRIMARY KEY, NAME VARCHAR(255));

Update Table Definition

Delete Table

DROP TABLE IF EXISTS <table-name>;