Search Postgresql Archives

Stripping apostrophes from data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there some program or procedure for stripping apostrophes (') from data in the db?  Most of our data has been shuffled over to Postgres from an older system, and I'm occasionally running into data entered in the old system that has apostrophes in it.  (Most recent example: A name field with the word "Today's" in it.)  Given that most of my interactions with the database are through perl scripts and php pages, I can't always tell ahead of time what field I need is going to contain data that's deadly to my statements.
 
Alternately, is there some way of inserting or selecting data from the db which doesn't require the use of apostrophes for non-numeric fields?


Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux