抢分:)
select [id],strname from a1
union all
select [id],strname from a2

解决方案 »

  1.   

    用这语句
    select a1.ID,a1.sername,a2.ID,a2.sername from a1,a2
    建议你买本数据库方面的书,会很有帮助的。
      

  2.   

    感谢,感谢,马上给分但是 union 和 union all 有什么区别呢?
      

  3.   

    wl23(三石)同志
    “用这语句
    select a1.ID,a1.sername,a2.ID,a2.sername from a1,a2
    建议你买本数据库方面的书,会很有帮助的。”以上是你的回答 ???? 请你看清楚我的问题好不好?建议你配副眼镜,会很有帮助的
      

  4.   

    按照缺省规定,使用 UNION 运算时不返回重复的记录;然而,可以包含 ALL 谓词来确保返回所有的记录。这样,运行查询的速度也会快些。