两种用法 一样, 查询字段类型需要一致
union 会自动去重
union all 不会去重
select name ,age from studentunionselect name ,age from student2
原文链接:http://www.cnblogs.com/zhangmm96/p/11133267.html
本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728