日期:2014-05-18 浏览次数:21018 次
        string[] gj = TextBox1.Text.Split(',');
        string whe = " where (";
        for (int i = 0; i < gj.Length; i++)
        {
            whe += "( 内容字段 like '%" + gj[i] + "%') or ";
        }
        whe = whe.Substring(0, whe.Length - 3)+") ";
        string sql = "select * from 表 " + whe+ " and (日期字段 between ... and ... )";
------解决方案--------------------
LZ我白白回你贴,你都不鸟我,汗~~~~~~~~