X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0B77DD1B181 for ; Wed, 21 Jul 2004 00:53:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84257-04 for ; Wed, 21 Jul 2004 03:53:16 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by svr1.postgresql.org (Postfix) with SMTP id 16C28D1B179 for ; Wed, 21 Jul 2004 00:53:15 -0300 (ADT) Received: by mproxy.gmail.com with SMTP id d15so816999rng for ; Tue, 20 Jul 2004 20:53:14 -0700 (PDT) Received: by 10.38.71.36 with SMTP id t36mr43869rna; Tue, 20 Jul 2004 20:53:14 -0700 (PDT) Message-ID: <235b1a28040720205322cc291c@mail.gmail.com> Date: Wed, 21 Jul 2004 11:53:14 +0800 From: azah azah To: Rod Taylor Subject: Re: date_format in postresql Cc: pgsql-sql@postgresql.org In-Reply-To: <1090377577.12565.13.camel@jester> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <235b1a28040720175570f4225a@mail.gmail.com> <1090377577.12565.13.camel@jester> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200407/138 X-Sequence-Number: 18390 Thanks Chris and Rod. I think I have a problem because not many function existing in postresql that i installed. How can i get all the build-in functions because the basic function to_char is not existing in the database? On Tue, 20 Jul 2004 22:39:38 -0400, Rod Taylor wrote: > On Tue, 2004-07-20 at 20:55, azah azah wrote: > > Hi, > > I want convert from mysql to postresql, > > in mysql, query to database using the code as below: > > > > date_format(submittime, "%W %M %e, %Y - %r") > > to_char(submittime, 'format string') > > http://www.postgresql.org/docs/7.4/static/functions-formatting.html > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >