dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Re: [GENERAL] Enc: Help to replace caracter - postgresql

This is a discussion on Re: [GENERAL] Enc: Help to replace caracter - postgresql ; On 14/11/2008 16:17, paulo matadr wrote: > Any help me to create pgPL/sql or funcion to replace ( " ) to null > value, I have many table with this. Do you mean you want to replace just those characters ...


Home > Database Forum > Other Databases > postgresql > Re: [GENERAL] Enc: Help to replace caracter

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-14-2008, 12:39 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: [GENERAL] Enc: Help to replace caracter

On 14/11/2008 16:17, paulo matadr wrote:


> Any help me to create pgPL/sql or funcion to replace ( " ) to null
> value, I have many table with this.


Do you mean you want to replace just those characters with NULL? Won't
this cause the entire string to be NULL?

postgres=# select 'abc' || NULL;
?column?
----------

(1 row)


Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 06:51 AM.