Commit a5fbb0f7 by Patryk Czarnik

Jakieś popraweczki w przykładach

parent 80c294d3
......@@ -25,6 +25,9 @@ public class P11_Metadane {
wypiszTabele(tables);
}
System.out.println("\n\nNormalna tabela:");
// dbMetaData.getColumns(null, "public", null, null);
// dbMetaData.getPrimaryKeys(null, "public", null);
// dbMetaData.getFunctions(null, "public", null);
try(ResultSet rs = c.createStatement().executeQuery("SELECT * FROM jobs")) {
wypiszTabele(rs);
......
......@@ -28,7 +28,7 @@ public class P24_WebRowSet {
rowSet.execute();
System.out.println("Eksportuję XML");
try(Writer out = new BufferedWriter(new FileWriter("employees.xml"))) {
try(Writer out = new BufferedWriter(new FileWriter("out/employees.xml"))) {
rowSet.writeXml(out);
}
System.out.println("Gotowe");
......
......@@ -2,7 +2,8 @@ package p21_jdbc.postgresql;
public class Ustawienia {
// public static final String HOST = "localhost";
public static final String HOST = "vps-2bc225bd.vps.ovh.net";
// public static final String HOST = "vps-2bc225bd.vps.ovh.net";
public static final String HOST = "57.128.222.164";
public static final String PASSWD = "abc123vps";
public static final String BAZA = "hr";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment