From: Bret Hughes <bhughes@elevating.com>
To: postgresql sql list <pgsql-sql@postgresql.org>
Subject: how can I query for unset timestamps
Date: 22 Feb 2005 15:09:54 -0600
Message-ID: <1109106594.3945.120.camel@bretsony> (raw)
I have a table that I recently altered by adding several timestamp
columns. I would like to query the table for those rows for which the
timestamp has not been set but am unable to find a way to do so. any
tips ? in psql the column appears empty and char_length returns
nothing.
Some of what I have tried
"" -> not valid
char_length(last_timestamp) > 0 -> returns the rows with the time
stamps
where NOT char_length(last_timestamp) > 0 -> returns 0 rows
where NOT (char_length(last_timestamp) > 0 ) -> returns 0 rows
where last_timestamp = NULL; -> 0 rows
this is kicking my butt, and starting to piss me off so if any one has
tips I would appreciate it.
Bret
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bhughes@elevating.com
Subject: Re: how can I query for unset timestamps
In-Reply-To: <1109106594.3945.120.camel@bretsony>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox