string sql = "select * from fruit ";
我想进行模糊查询,,,select * from fruit where name like '%TextBox输入的信息%'
string value = TextBox输入的信息; string sql = "select * from fruit where name like '%" + value + "%'";
string params=this.textBox.Text;
select * from fruit where name like '%params%'
楼上dudu正解。
dudu都来了