I'm creating a MySQL table in Java. I don't want to have one big string since I think it looks messy.
Is there something like this when creating a table?
try (final PreparedStatement statement = this.connection.prepareStatement("CREATE TABLE IF NOT EXISTS " + this.table + "(?, ?)")) {
statement.setString(1, "id TINYINT PRIMARY KEY NOT NULL");
statement.setString(2, "another_column TINYTEXT NOT NULL");
statement.execute();
Regards