我试图这样做,但无法找到工作,寻求帮助
declare @badStrings table (item varchar(50))
INSERT INTO @badStrings(item)
SELECT '>' UNION ALL
SELECT '<' UNION ALL
SELECT '(' UNION ALL
SELECT ')' UNION ALL
SELECT '!' UNION ALL
SELECT '?' UNION ALL
SELECT '@'
SELECT Replace(u.DisplayName, b.item, '') , * FROM User u, @badStrings b