欢迎投稿

今日深度:

sql server union与unionALL区别,

sql server union与unionALL区别,


两种用法 一样, 查询字段类型需要一致

union 会自动去重

union all  不会去重

 

select  name ,age from student

union

select  name ,age from student2


 

www.htsjk.Com true http://www.htsjk.com/Sql_Server/28018.html NewsArticle sql server union与unionALL区别, 两种用法 一样, 查询字段类型需要一致 union 会自动去重 union all 不会去重 select name ,age from studentunion select name ,age from student2...
相关文章
    暂无相关文章
评论暂时关闭