Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: Yesterday @ 11:36 AM
Points: 1,045, Visits: 996
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: Monday, May 23, 2016 11:31 AM
Points: 19,799, Visits: 18,071
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: Today @ 3:51 AM
Points: 3,254, Visits: 5,123
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: Tuesday, April 19, 2016 5:42 AM
Points: 2,665, Visits: 374
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: Yesterday @ 1:09 AM
Points: 235, Visits: 1,280
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


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Monday, May 23, 2016 6:13 AM
Points: 15,149, Visits: 13,035
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, May 3, 2016 1:43 PM
Points: 2,830, Visits: 2,621
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