String Manipulation - Mailing list pgsql-general

From Christine Penner
Subject String Manipulation
Date
Msg-id 19740414223344.8EDA1B01381CF54A@priv-edtnaa07.telusplanet.net
Whole thread Raw
Responses Re: String Manipulation
List pgsql-general
Hi,

I want to calculate a new field I added to a table but I'm not sure
how to do it. This will be a copy of another field with any non
numeric characters stripped off the end and padded with spaces.

This is what I was trying to do

Update Buildings SET B_LOT_SORT=lpad(substr(lot,1,??),7)

instead of ?? I need to know the position of the last numeric character.
Any suggestions would be appreciated

Christine Penner
Ingenious Software
250-352-9495
christine@ingenioussoftware.com


pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: search for partial dates
Next
From: Sam Mason
Date:
Subject: Re: String Manipulation