标签:sele ring 不用 highlight arch 单引号 select nbsp sel
String searchName ="Sam"; String strSql = "select * FROM Table1 where Name like @Name "; searchName = "%"+searchName+"%"; //注意不用加单引号,传参到Sql语句中会自动添加 SqlParameter[] parameters = { new SqlParameter("@Name", searchName) };
标签:sele ring 不用 highlight arch 单引号 select nbsp sel
原文地址:https://www.cnblogs.com/deepalley/p/12996867.html