- #1
Franco
- 12
- 0
need help with some coding
public void createTable(String tableName, String[] columnNames, String[] columnType, String[] Keys) throws SQLException {
try {
stmt = conn.createStatement();
String sql = <need help here>
stmt.executeUpdate(sql);
}
catch (SQLException e) {
}
}
not sure how to type the code for String sql
with columnNames, columnType as arrays...
should i actually for-loop it??
public void createTable(String tableName, String[] columnNames, String[] columnType, String[] Keys) throws SQLException {
try {
stmt = conn.createStatement();
String sql = <need help here>
stmt.executeUpdate(sql);
}
catch (SQLException e) {
}
}
not sure how to type the code for String sql
with columnNames, columnType as arrays...
should i actually for-loop it??