select id,title,info,author from dt1 where id=1
查询出数据,然后绑定到gridview中,再把ID列隐藏

解决方案 »

  1.   

    select id,title,info,author from dt1 where id=1
    union
    select id,title,info,author from dt2 where id=1绑定上去就是
      

  2.   

    如果表一、表二是两种类型的数据
    select id,title,info,author,'娱乐新闻' type,'a.aspx?type=1&id='||id url from dt1 where id=1
    union
    select id,title,info,author,'体育新闻' type,'a.aspx?type=2&id='||id url from dt2 where id=1这样不就区分开了