select * from <表名> where name like '%' + @Name +'%'


其中@Name 的值可以来自于textbox控件


如果有多个条件,可以是使用OR AND等逻辑运算符.