Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3306B47739D for ; Fri, 24 Jan 2003 00:26:27 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id C706D475E4A for ; Thu, 23 Jan 2003 22:40:14 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id AFAB443A439; Thu, 23 Jan 2003 22:40:14 -0500 (EST) From: "codeWarrior" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Rename database? Date: Thu, 23 Jan 2003 19:47:24 -0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 56 Message-ID: References: <000c01c2c32b$09526500$5301a8c0@monet> Reply-To: "codeWarrior" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/466 X-Sequence-Number: 11331 No. Try instead CREATE DATABASE newname FROM TEMPLATE oldname; DROP DATABASE oldname; ""Wei Weng"" wrote in message news:000c01c2c32b$09526500$5301a8c0@monet... > This is a multi-part message in MIME format. > > ------=_NextPart_000_0009_01C2C301.1FA1DB80 > Content-Type: text/plain; > charset="Windows-1252" > Content-Transfer-Encoding: quoted-printable > > Can I use a SQL statement to rename database? > > e.g Rename Database Bank to Database Bank_backup > > Thanks! > > Wei > > ------=_NextPart_000_0009_01C2C301.1FA1DB80 > Content-Type: text/html; > charset="Windows-1252" > Content-Transfer-Encoding: quoted-printable > > > > 2"> > > > > >
Can I use a SQL statement to rename database? IV> >
 
>
e.g Rename Database Bank to Database Bank_backup= >
>
 
>
Thanks!
>
 
>
Wei
>
 
> > ------=_NextPart_000_0009_01C2C301.1FA1DB80-- >