当前位置: 代码迷 >> ASP.NET >> 判断大于几并且小于几的代码如何写
  详细解决方案

判断大于几并且小于几的代码如何写

热度:9726   发布时间:2013-02-25 00:00:00.0
判断大于几并且小于几的代码怎么写
#region 经典案例
  public void ShowProductView2Info()
  {
  WebProject.BLL.BaseData.ZT_COM_Product bll_Product = new WebProject.BLL.BaseData.ZT_COM_Product();
  DataSet ds = bll_Product.GetList(int.MaxValue, "ProductID>6", "ProductOrder asc");
  if (ds.Tables.Count > 0)
  {
  this.DLProduct2.DataSource = ds;
  this.DLProduct2.DataBind();
  }
  #endregion
  }
}



我想把这段代码里的PRODUCTID>6 写成大于6小于9 该怎么写呢

------解决方案--------------------------------------------------------
PRODUCTID>6 and PRODUCTID<9
------解决方案--------------------------------------------------------
DataSet ds = bll_Product.GetList(int.MaxValue, "ProductID>6 and ProductID<9", "ProductOrder asc");
  相关解决方案