DDL commands execution from JDBC | JDBC Tutorials

This JDBC Tutorials  “DDL commands execution from JDBC” post explains clearly how to execute Data Definition Language commands execution from JDBC application.


Create table in Database from JDBC Application:

  • Loading OracleDriver.
  • Get Connection using Connection String, Username and Password.
  • execute() method of Statement interface is used to execute DDL commands.
  • execute() method returns false if the query executes successfully.
  • execute() method returns true in case of failure execution.


Share this