你需要逃脱
select * from mytablewhere mycol like '5% off' escape '';
对于无论NO_BACKSLASH_ESCAPES模式如何均可运行的版本,可以使用其他字符,例如管道:
select * from mytablewhere mycol like '5|% off' escape '|';

你需要逃脱
select * from mytablewhere mycol like '5% off' escape '';
对于无论NO_BACKSLASH_ESCAPES模式如何均可运行的版本,可以使用其他字符,例如管道:
select * from mytablewhere mycol like '5|% off' escape '|';