Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void createTable()
- {
- PreparedStatement statement1 = null;
- try
- {
- Connection connection = MySQL.getConnection();
- assert (connection != null);
- statement1 = connection.prepareStatement("CREATE TABLE IF NOT EXISTS uhc_stats( " +
- " uuid VARCHAR(36) NOT NULL PRIMARY KEY, " +
- " wins INT(100) NOT NULL DEFAULT '0', " +
- " kills INT(100) NOT NULL DEFAULT '0'," +
- " deaths INT(100) NOT NULL DEFAULT '0'," +
- "`coal-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `iron-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `gold-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `lapis-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `redstone-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `diamond-mined` INT(100) NOT NULL DEFAULT '0'," +
- " `emerald-mined` INT(100) NOT NULL DEFAULT '0');");
- statement1.executeUpdate();
- } catch (SQLException e)
- {
- e.printStackTrace();
- } finally
- {
- try
- {
- assert (statement1 != null);
- statement1.close();
- } catch (SQLException e)
- {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement