From: | "ktm(at)rice(dot)edu" <ktm(at)rice(dot)edu> |
---|---|
To: | Frank Cavaliero <fcavalie(at)us(dot)ibm(dot)com> |
Cc: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Use, Set Catalog and JDBC questions |
Date: | 2013-02-25 19:12:23 |
Message-ID: | 20130225191223.GL19940@aart.rice.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
On Mon, Feb 25, 2013 at 01:57:11PM -0500, Frank Cavaliero wrote:
> Hi Adrian,
>
> Thanks for the response. The situation is more like the following:
>
> Using the JDBC driver, I connect to database TEST1 and immediately,
> without having to pass username credentials again, I want to use database
> TEST2. In MySQL, you can simply run: use TEST2. Wondering if
> PostgreSQL has something similar.
>
> Thanks,
> Frank
>
Hi Frank,
The "USE xxx;' is a non-standard MySQL extension to the SQL language. This
functionality is not available at the SQL layer and must be supported by
the connection application itself, I think. For example, you can use
"\c xxx" in psql to perform that function. If JDBC does not support it
natively, you would need to open a new connection to the new database.
Regards,
Ken
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2013-02-25 19:13:19 | Re: Use, Set Catalog and JDBC questions |
Previous Message | Adrian Klaver | 2013-02-25 19:06:14 | Re: Use, Set Catalog and JDBC questions |
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2013-02-25 19:13:19 | Re: Use, Set Catalog and JDBC questions |
Previous Message | Adrian Klaver | 2013-02-25 19:06:14 | Re: Use, Set Catalog and JDBC questions |