This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the
version, or one of the other supported versions listed above instead.
To create, modify or drop a database object like a table or
view you use the
This method is similar to the method
executeQuery(), but it doesn't return a result.
illustrates the usage.
Example 31-7. Dropping a Table in JDBC
This example will drop a table.
Statement st = db.createStatement();
st.execute("DROP TABLE mytable");