I need to add an apex in a specific point of a formula in SQL Server, in a lot of rows. Can I do this with a script? I tried but SQL doesn't understand apex "like a string"
CAMPO XYZ:
X NOT IN (SELECT A FROM #ABC# WHERE APPLE = 'NO')
AND ISNULL(ISNULL(SUNNY,'),'NO') <> 'YES'
AND (VEG = 'CARROTS')
My idea:
DECLARE @a varchar(100)
DECLARE @b varchar(100)
SET @a = 'SUNNY,'';
SET @b = 'SUNNY,''';
UPDATE A
SET A.XYZ = REPLACE(A.XYZ, @a, @b)
FROM...
I need to replace the wrong one apex with double apex for that ISNULL
.
Can you find the correct syntax?
1条答案
按热度按时间bvjxkvbb1#
Apex, i guess you mean quote? Every quote must be quoted again, so something like this should work: