Re: Function in psql to Compare two numbers and return the bigger value

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: emilu(at)encs(dot)concordia(dot)ca
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Function in psql to Compare two numbers and return the bigger value
Date: 2007-02-13 18:48:26
Message-ID: 45D207FA.7050803@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Emi Lu wrote:
> HEllo,
>
> I am looking for a psql method to get the bigger value of two numbers.
>
> For example,
>
> methodName(12.6, 3.8)
>
select greatest(12.6,3.8);

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Emi Lu 2007-02-13 18:55:39 Re: Function in psql to Compare two numbers and return the bigger value
Previous Message Adam Rich 2007-02-13 18:47:11 Re: Function in psql to Compare two numbers and return the bigger value