如题:
sql:select distinct fysp.bh ,fysp.sbdw ,fysp.xmbh ,fysp.ysje,fysp.jbrbh ,fysp.zt ,fysp.djrq ,wdys.sfbh  from vi_fysp  fysp,vi_wdys  wdys,xtgl_yh  xtgl where fysp.zt = '7' and wdys.sfbh='0'  and fysp.bh=wdys.spbbh and fysp.jbrbh = xtgl.bh  and wdys.vihzp is null  C#:
using(System.Data.OracleClient.OracleDataAdapter da=new System.Data.OracleClient.OracleDataAdapter(strWhere,System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]))
{
da.Fill(ds);
}
if(ds != null)
{
    if(ds.Tables[0].Rows.Count<1)
return;
if(Session["g_page_hqgl"] != null)
{
this.dgData.CurrentPageIndex = int.Parse(Session["g_page_hqgl"].ToString()) - 1;
}
this.dgData.DataSource = ds.Tables[0].DefaultView;
this.dgData.DataBind();
}