Java SQL Table Create createTestTable(Connection conn)

Here you can find the source of createTestTable(Connection conn)

Description

create Test Table

License

Open Source License

Declaration

public static void createTestTable(Connection conn) throws SQLException 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.sql.Connection;

import java.sql.SQLException;
import java.sql.Statement;

public class Main {
    public static void createTestTable(Connection conn) throws SQLException {
        try (Statement statement = conn.createStatement()) {
            statement.execute("create table TEST (ID int, NAME varchar(8))");
        }/*from w w w .j  a  v a 2s  . c om*/
    }
}

Related

  1. createTable(Connection conn, String sqlText)
  2. createTable(Connection connection)
  3. createTable(Connection dbConn, String tableName, String columnSpec)
  4. createTable(String query)
  5. createTableAndLoadData(Statement stmt, String tableName)
  6. createTestTables(Statement sStatement)