diff --git a/DB/DBUpdate.java b/DB/DBUpdate.java index e32d64d..5ee87cb 100644 --- a/DB/DBUpdate.java +++ b/DB/DBUpdate.java @@ -30,19 +30,20 @@ public class DBUpdate { System.out.println("Connection success"); stmt = conn.createStatement(); StringBuilder sb = new StringBuilder(); - String sql = sb.append("create table if not exists UserInfo(") - .append("UUID varchar(36)") -/* .append("Nation int,") + /* String sql = sb.append("create table if not exists UserInfo(") + .append("UUID varchar(36),") + .append("Nation int(8)") .append("Occupation TINYINT,") .append("Squad int,") .append("Farm int,") - .append("Account int,")*/ + .append("Account int,") .append(")").toString(); stmt.execute(sql); + */ for (UUID key : m_InfoArrayInstance.m_UserInfoArray.keySet()) { //sql = sb.append("insert into UserInfo values('"+key+"',"+0+","+0+","+0+","+0+","+0+")").toString(); - sql = sb.append("insert into UserInfo (UUID) value ('"+key.toString()+ "')").toString(); + String sql = sb.append("insert into UserInfo values ('test', 0)").toString(); stmt.execute(sql); } }