Is there any way to change postgreSQL current database from java application?
or is there any equivalent for \connect report
?
I know i can do this by changing JDBC connection string, but is there any better alternative?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
||||
let the user make the selection, and append it to the JDBC connection string
. If the user wants to change the connection, they will select which new database to connect to, right. So, close the previous connection, and create a new connection to the newer database. – user2339071 Oct 28 '13 at 14:30