sql - TSQL CASE LTRIM (RTRIM NULL -
SQL syntax is still something I'm learning. I am getting the error mentioned below this snippet of code. Select
when LTRIIM (RTRIM (CLAHMANO)) = '' then tap when CLAHman has not been non-recalculated (CLAHMANO, SBSTERING (CLAHMAN, PATIdx ('% [^ A-ZA] -Jed-9 '' '' ']%', CLAHman no.1, '') End Allon_ NUMBER, case when LTRIIM (RTIIM (CMRS)) = '' Then zero when CMs are not zero (CMRS, SUBSTRING ( CMRS, PattiDX ('% [^ A-GA-Z-9' '' '']]%, CMRS, 1), '') and M > and its 100 + more.
Message 8133, level 16, state1, line 1 Any of the results expressed in the CASE specification can be null
What am I doing wrong? How do I keep a summary of the statement and not give this crazy error?
This happens when it can be
for example
select when 1 = 2 again Faucet ends tap end
but it works
select when 1 = 2 then instead of the place of the tap (zero, '', '') END
So I suspect that the error code is shown to us (you are using string functions And the following quick tests show that it assumes that it select varchar (8000)
)
when 1 = 2 then replace the tap (null , '', '') Finally a T / * datatip varchar (8000) * /
Comments
Post a Comment