Does h2 support creating table with secondary key?
When I try this create table, it fails with "org.h2.jdbc.JdbcSQLException: Unknown data type: "("; SQL statement:"
CREATE TABLE IF NOT EXISTS testTable
(col1 BIGINT(20) NOT NULL AUTO_INCREMENT,
col2 BIGINT(20) NOT NULL,
col3 BIGINT(20) NOT NULL,
col4 VARCHAR(100) NOT NULL,
PRIMARY KEY(col1),
KEY(col1, col2, col3));
But this one succeeds:
CREATE TABLE IF NOT EXISTS testTable
(col1 BIGINT(20) NOT NULL AUTO_INCREMENT,
col2 BIGINT(20) NOT NULL,
col3 BIGINT(20) NOT NULL,
col4 VARCHAR(100) NOT NULL,
PRIMARY KEY(col1));