111,129
社区成员
发帖
与我相关
我的任务
分享
string sSQL = "select * from BookInfo where BookName like '%@BName%'";
SqlParameter[] arrParm = new SqlParameter[1];
arrParm[0] = new SqlParameter("@BName", "文本框的值");
string cmdtext =
@"select * from BookInfo where BookName like '%" + textBox1.Text.ToString() + "%'";
string cmdtext = @"select * from BookInfo where BookName like '%" + textBox1.Text.ToString() + "%'";