create a table in clickhouse create a prepared statement from a concatenated insert string containing the table name add multiple values to the prepared statement in a batch use executeLargeBatch ...
create table if not exists jdbc_insert ( LOGGED_TIME timestamp not null, ORIGINAL_TIME timestamp, LOG_CATEGORY varchar(30) INVERTED INDEX, LOG_ACTION varchar(30) INVERTED INDEX, SUCCESS boolean, TIME ...
The problems with PreparedStatement stem from its syntax for parameters. Parameters are anonymous and accessed by index as in the following: PreparedStatement p = con.prepareStatement("select * from ...