时间:2021-07-01 10:21:17 帮助过:4人阅读
String searchName ="Sam"; String strSql = "select * FROM Table1 where Name like @Name "; searchName = "%"+searchName+"%"; //注意不用加单引号,传参到Sql语句中会自动添加 SqlParameter[] parameters = { new SqlParameter("@Name", searchName) };
SqlParameter like
标签:sele ring 不用 highlight arch 单引号 select nbsp sel