Package javatapas.sql
Class GetSqlCreateTableStatement
java.lang.Object
javatapas.sql.GetSqlCreateTableStatement
public class GetSqlCreateTableStatement extends Object
Get SQL Create Table DDL Statement using JDBC.
Published at https://www.javatapas.com/sql/Java-Get-Sql-Create-Table-Statement.html
Javadoc at https://www.javatapas.com/docs/javatapas/sql/GetSqlCreateTableStatement.html
Published at https://www.javatapas.com/sql/Java-Get-Sql-Create-Table-Statement.html
Javadoc at https://www.javatapas.com/docs/javatapas/sql/GetSqlCreateTableStatement.html
- Version:
- 2021-05-24
- Author:
- Kodiak Brown
-
Constructor Summary
Constructors Constructor Description GetSqlCreateTableStatement()
-
Method Summary
Modifier and Type Method Description static String
getSqlCreateTableStatement(Connection conn, String tableName)
-
Constructor Details
-
GetSqlCreateTableStatement
public GetSqlCreateTableStatement()
-
-
Method Details
-
getSqlCreateTableStatement
public static String getSqlCreateTableStatement(Connection conn, String tableName) throws SQLException- Parameters:
conn
- The JDBC Connection object. Note that since this is being passed into the method as a parameter, it does not get closed within the method.tableName
- The name of the table that the SQL DDL statement should be created from.- Throws:
SQLException
-