Re: select where true, or select where input = '$var'

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: select where true, or select where input = '$var'
Date: 2015-02-19 21:23:53
Message-ID: 54E65469.7060402@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/19/2015 12:39 PM, zach cruise wrote:
> i want to select based on input, but if input is not provided or if
> input is empty, then i want to select all rows.

something unclear here, is INPUT a variable in your application program,
or is it a field in the table?

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message zach cruise 2015-02-19 21:31:35 Re: select where true, or select where input = '$var'
Previous Message Alban Hertroys 2015-02-19 21:14:50 Re: select where true, or select where input = '$var'