日期:2014-05-17 浏览次数:20564 次
/// <summary>
/// 读取标签列表(多表:Plus、Users)
/// </summary>
///
public DataSet GetList_TagUnion(string strWhere,int PageSize,int Page)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("SELECT top " + PageSize + " Plus.*,Users.* FROM Plus INNER JOIN Users ON Plus.Users_ID =Users.Users_ID ");
strSql.Append("and " + strWhere);
strSql.Append("where Plus.Plus_ID not in (select top (" + (Page - 1) * PageSize + ") Plus.Plus_ID FROM Plus INNER JOIN Users ON Plus.Users_ID =Users.Users_ID and " + strWhere + " order by Plus.Plus_ID desc) ");
strSql.Append(" order by Plus.Plus_ID desc");
return Common.DbHelperSQL.Query(strSql.ToString());
}