I unten Code habenSQL COALESCE Modifikation
SELECT @email = COALESCE(@email + ', ', '') + Email
FROM dbo.FTX_ALERTUSER WITH (NOLOCK)
WHERE AlertID = 9017 AND Email IS NOT NULL
SELECT @email2 = VENDOREMAIL
FROM FTX_NCMR_VENDOR_REQUIREMENT WITH(NOLOCK)
WHERE VENDORCODE = @param1 AND BU = @param2
SELECT @email = @email + ',' + ISNULL(@email2,''' ''')
Welche Saite schafft
[ftx_alert_list] 'updateLastRunDT','9017','FTX-Software, [email protected], [email protected], [email protected], [email protected],' '','FTX_F20160607004'
ich diese Zeichenfolge wie
[ftx_alert_list] 'updateLastRunDT','9017','FTX-Software, [email protected], [email protected], [email protected], [email protected]','','FTX_F20160607004'`
Der einzige Unterschied korrigieren wollen, ist ,' '',
ich ','',
wollen nach [email protected]
Was ist die genaue Ausgabe von '@ email' und' @ email2'? – Arulkumar
@Arulkumar @ email = 'FTX-Software, [email protected], [email protected], [email protected], [email protected],' – user6363065
und für @ email2 = '', – user6363065