Re: Why lower's not accept an AS declaration ?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Hervé Piedvache <herve(at)elma(dot)fr>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why lower's not accept an AS declaration ?
Date: 2003-08-18 10:45:40
Message-ID: 20030818104540.GA11983@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 18, 2003 at 10:20:13AM +0200, Hervé Piedvache wrote:
> You can imagine my test is simple, in practise it's not the reallity of my
> original request ... but this example is just to show that lower() function
> does not accept an AS declaration ... is it normal ?

Yes, that's normal. It's even required by the SQL spec AFAIK. If it's a
problem of multiple evaluation, you can use subqueries in the FROM clause.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "All that is needed for the forces of evil to triumph is for enough good
> men to do nothing." - Edmond Burke
> "The penalty good people pay for not being interested in politics is to be
> governed by people worse than themselves." - Plato

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darko Prenosil 2003-08-18 11:04:07 Re: Why lower's not accept an AS declaration ?
Previous Message Jason Godden 2003-08-18 10:38:37 Re: C vs plpgsql and child processes