阅读背景:

c#:使用任何字符执行sql LIKE搜索的正确方法是什么

来源:互联网 

I'm building (c#) sql select commands strings on the fly using LIKE %somestring% conditions. In my search strings I want to be able to handle any character found on a standard PC (US) keyboard (including ~ ! @ # % etc., alt-special chars not required but would be nice to have). I know that single quotes need to be doubled up and perhaps double quotes as well. What other string fixes might be required to ensure correct syntax?I'm building (c#) sql select commands strings o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: