Compare commits
8 Commits
f07591eb5e
...
9cf5d76320
Author | SHA1 | Date |
---|---|---|
shaggy3007 | 9cf5d76320 | |
shaggy3007 | 16ce9bac49 | |
shaggy3007 | fc33ce4730 | |
shaggy3007 | 775c025ee7 | |
shaggy3007 | acf44b7b76 | |
shaggy | 67b4e3932c | |
elix3007 | 0c4d1cef71 | |
elix3007 | e372b59e32 |
|
@ -1,11 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="Elaborato_IS/src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/shaggy/Scrivania/JavaLib/postgresql-42.6.0.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
|
@ -9,11 +9,13 @@ public class Main {
|
|||
|
||||
|
||||
Connection connection = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5432/ingegneria",
|
||||
"neto", "fethergay");
|
||||
"utente", "password");
|
||||
|
||||
|
||||
|
||||
PreparedStatement stmt;
|
||||
|
||||
|
||||
stmt = connection.prepareStatement("DO $$ BEGIN "
|
||||
+ "CREATE TYPE categoria_appartenenza AS ENUM ('gay', 'frocio', 'down', 'edi', 'spastico');"
|
||||
+ "EXCEPTION "
|
||||
|
|
Loading…
Reference in New Issue