Re: Need suggestion on how best to update 3 million rows

From: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need suggestion on how best to update 3 million rows
Date: 2007-09-06 09:58:40
Message-ID: 1189072720.24080.4.camel@neuromancer.home.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2007-09-06 at 04:47 -0500, Ron Johnson wrote:
> Maybe there's an English language "issue", or maybe I'm just
> excessively picky, but using "number" in this context is confusing.

My Bad.. hehe..

> Then I agree with Alban:
> update table set number = trim(number);
> or, if you need the leading spaces:
> update table set number = rtrim(number)
>
> Then:
> update table set number = NULL where number = '';

Dag it.. I wish I didn't live on the other end of the TimeZone and
gotten this answer before I went the "hard way"

oh well.. lesson learned and that's the positive spin on it right?

Thanks a bunch guys..

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-09-06 10:11:15 Re: UTF8 frustrations
Previous Message Ron Johnson 2007-09-06 09:47:39 Re: Need suggestion on how best to update 3 million rows