日期:2014-05-17 浏览次数:20875 次
string sql="select * from user where 1=1"; foreach(string str in Regex.Split(TextBox1.Text,"\\s+") { sql+= " AND name like %"+ str+"%"; }