Re: empty

From: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
To: ryanne cruz <ryanne(dot)cruz(at)up(dot)edu(dot)ph>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: empty
Date: 2003-01-22 07:36:59
Message-ID: 1043221019.3119.196.camel@kant.mcmillan.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Wed, 2003-01-22 at 20:14, ryanne cruz wrote:
> hi list.
>
> i have a column which has some rows int it that has no data. how do i select
> them?

If the column has NULL values:

SELECT column FROM table WHERE other_column IS NULL;

or (if the column has blank values):

SELECT column FROM table WHERE other_column = '';

Also, may I recommend:

http://www.postgresql.org/idocs/index.php?user.html

Regards,
Andrew.
--
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Survey for nothing with http://survey.net.nz/
---------------------------------------------------------------------

In response to

  • empty at 2003-01-22 07:14:17 from ryanne cruz

Responses

  • Re: empty at 2003-01-22 07:57:29 from ryanne cruz

Browse pgsql-php by date

  From Date Subject
Next Message ryanne cruz 2003-01-22 07:55:14 Re: rtrim
Previous Message Andrew McMillan 2003-01-22 07:31:42 Re: rtrim