Here you can find the source of executeDDL(String query, Connection connection)
public static void executeDDL(String query, Connection connection) throws SQLException
//package com.java2s; import java.sql.*; public class Main { public static void executeDDL(String query, Connection connection) throws SQLException { try (Statement st = connection.createStatement()) { st.executeUpdate(query);/*from ww w . j a v a 2s . c om*/ } } }