I have to execute a script from Java code which should create a database and then a table in that database. How do I do it in PostgreSQL?
CREATE DATABASE mydb
USE mydb
// doesn't work for PostgreSQLCREATE TABLE mytable (.....)
What SQL do we give for Step 2 in PosgreSQL?
Version : 9.5