Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 123»»»

REPLACE() and NULL Expand / Collapse
Author
Message
Posted Sunday, July 11, 2010 8:15 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, August 12, 2015 4:30 AM
Points: 1,015, Visits: 958
Comments posted to this topic are about the item REPLACE() and NULL

-----
a haiku...

NULL is not zero
NULL is not an empty string
NULL is the unknown
Post #950451
Posted Sunday, July 11, 2010 8:16 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Sunday, January 4, 2015 7:55 AM
Points: 5,333, Visits: 25,280
Nice question ....

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #950452
Posted Sunday, July 11, 2010 4:33 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 9:39 PM
Points: 19,178, Visits: 17,479
Nice question - thanks.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #950528
Posted Sunday, July 11, 2010 10:47 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Monday, August 3, 2015 7:30 AM
Points: 3,244, Visits: 5,043
Nice one...

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sometimes, winning is not an issue but trying.

You can check my BLOG here

Post #950556
Posted Sunday, July 11, 2010 11:37 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Sunday, February 22, 2015 11:51 PM
Points: 2,395, Visits: 372
thnx nice one

SELECT REPLACE('Hello world',NULL, 'zzz' );

as suggested by you... even this returns the same output
Post #950566
Posted Sunday, July 11, 2010 11:54 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 22, 2013 1:05 AM
Points: 248, Visits: 373

I learnt new thing today. Thanks Ronmoses.



KSB
-----------------------------
Thousands of candles can be lit from a single candle, and the life of the candle will not be shortened. Knowledge and happiness never decreases by being shared.” - Buddha
Post #950574
Posted Monday, July 12, 2010 1:23 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, August 20, 2015 3:56 AM
Points: 218, Visits: 1,166
Goodish! simple and informative!

Post #950595
Posted Monday, July 12, 2010 3:11 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, April 13, 2012 2:18 AM
Points: 14, Visits: 20
Good question. i like this function. Have used it
Post #950623
Posted Monday, July 12, 2010 5:20 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 3:03 PM
Points: 14,608, Visits: 12,670
A simple question, but a usefull one nonetheless, especially if you use the function with variables as input parameters.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #950669
Posted Monday, July 12, 2010 7:53 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, August 4, 2015 6:37 AM
Points: 2,826, Visits: 2,602
This is one of those things that can be a real gotcha if you don't know about it, and put in code to handle it ahead of time. Thanks.
Post #950761
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse