Commit f3f8474c by Patryk Czarnik

PolaczPostgres2 (VSP)

parent 9c199796
......@@ -35,7 +35,13 @@
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.6.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.42.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -7,7 +7,7 @@ public class PolaczPostgres2 {
public static void main(String[] args) {
try (Connection c = DriverManager.getConnection(
"jdbc:postgresql://vps497901.ovh.net/hr",
"jdbc:postgresql://vps497901.ovh.net:5432/hr",
"kurs",
"vps497901_abc123");
PreparedStatement stmt = c.prepareStatement("SELECT * FROM employees");
......
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