rtrim

From: ryanne cruz <ryanne(dot)cruz(at)up(dot)edu(dot)ph>
To: pgsql-php(at)postgresql(dot)org
Subject: rtrim
Date: 2003-01-22 06:25:28
Message-ID: 1043216728.3e2e39585c6f3@mail.up.edu.ph
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


hi list.

if there's anyone here who's familiar with teh rtrim function, please i need
help.

i have a table that has a column in it that has data in this format:

California, USA
Nevada, USA
.
.
.

when i use rtrim to erase the ", USA" part, it only sometimes work. a sample
result would be:

California
Nevad

my query statement is:
update table set name=rtrim(name,', USA');

why is it that it only works sometimes?

Responses

  • Re: rtrim at 2003-01-22 06:41:28 from ryanne cruz
  • Re: rtrim at 2003-01-22 07:31:42 from Andrew McMillan
  • Re: rtrim at 2003-01-22 13:42:21 from Bruno Wolff III

Browse pgsql-php by date

  From Date Subject
Next Message ryanne cruz 2003-01-22 06:41:28 Re: rtrim
Previous Message ryanne cruz 2003-01-22 06:18:32 pg_result