public DataTable GetNewListToDt(string where)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("SELECT id, typeid, typeid2, sortrank , flag, ismake, channel, arcrank , click, money, title, cast(shorttitle as char(37)), color, writer,");
strSql.Append(" source, litpic, FROM_UNIXTIME(pubdate, '%Y-%m-%d') as pubdate, senddate, mid, keywords, lastpost, scores, goodpost, badpost, voteid, notpost , ");
strSql.Append(" description, filename, dutyadmin, tackid, mtype, weight FROM dede_archives");
if (where != string.Empty)
{
//strSql.Append(" where title like '%" + where + "%' or keywords like '%" + where + "%' or description like '%" + where + "%'");
//strSql.Append(" where MATCH(keywords) AGAINST('" + where + "')");
strSql.Append(" where FIND_IN_SET('" + where + "', keywords)");
}
strSql.Append(" order by sortrank");
return DbHelperMySQL.Query(strSql.ToString());
}
MySql大数据量检索
最新推荐文章于 2024-07-19 07:15:49 发布