sql server中的左连接与右连接的简便写法

左连接 *=(左表中的数据全部显示出来,右表中没有相关联的数据显示null)

select Users.*,Department.name as DepartmentName from Users,Department where users.DepartmentID*=Department.ID

右链接 =*

posted on 2012-06-18 08:00  hanshuhe  阅读(1564)  评论(0编辑  收藏  举报