pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Change or get currentdb
2+ messages / 2 participants
[nested] [flat]

* Change or get currentdb
@ 2001-01-25 18:37  Sergiy Ovcharuk <Sergey.Ovcharuk@tessart.kiev.ua>
  0 siblings, 1 reply; 2+ messages in thread

From: Sergiy Ovcharuk @ 2001-01-25 18:37 UTC (permalink / raw)
  To: pgsql-sql

Hi, All!
Sorry for newby question...

How can I change and/or get to know a current db name using sql script in
PostgreSQL?

Thanks,
Sergiy.

P.S. it seems use <db_name> doesn't work :-(







^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Change or get currentdb
@ 2001-01-25 20:13  David Olbersen <dave@slickness.org>
  parent: Sergiy Ovcharuk <Sergey.Ovcharuk@tessart.kiev.ua>
  0 siblings, 0 replies; 2+ messages in thread

From: David Olbersen @ 2001-01-25 20:13 UTC (permalink / raw)
  To: Sergiy Ovcharuk <Sergey.Ovcharuk@tessart.kiev.ua>; +Cc: pgsql-sql

From \?
 \c[onnect] [dbname|- [user]]
                 connect to new database (currently '<db you're in>')

so typing "\c" gives you the database you're currently connected to and
"\c <database>" would connect you to that database.


On Thu, 25 Jan 2001, Sergiy Ovcharuk wrote:

->How can I change and/or get to know a current db name using sql script in
->PostgreSQL?

-- Dave




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-25 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25 18:37 Change or get currentdb Sergiy Ovcharuk <Sergey.Ovcharuk@tessart.kiev.ua>
2001-01-25 20:13 ` David Olbersen <dave@slickness.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox