diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java b/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java index 54876fd..163a374 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java @@ -20,7 +20,7 @@ public class HelloApplication extends Application { } public static void main(String[] args) { - String sql = """ +/* String sql = """ CREATE TABLE IF NOT EXISTS user ( id integer PRIMARY KEY, name text);"""; @@ -28,10 +28,10 @@ public class HelloApplication extends Application { String sql3 = "INSERT INTO user (id,name) VALUES (1,'test1')"; try(Connection conn = connect(); Statement stmt = conn.createStatement()){ - //stmt.execute(sql); - //stmt.execute(sql3); + stmt.execute(sql); + stmt.execute(sql3); PreparedStatement pstmt = conn.prepareStatement(sql2); - pstmt.setInt(1,1); + pstmt.setInt(1,0); ResultSet rs = pstmt.executeQuery(); while (rs.next()){ System.out.println(rs.getInt("id")); @@ -39,7 +39,7 @@ public class HelloApplication extends Application { }catch (SQLException e){ e.printStackTrace(); return; - } + } */ launch(); }