escape the underscore character sqlserver

WHERE username LIKE '%[_]d';            -- @Lasse solution
WHERE username LIKE '%$_d' ESCAPE '$';
WHERE username LIKE '%^_d' ESCAPE '^';

猜你喜欢

转载自yaozuodaoforfly.iteye.com/blog/2030636