问答详情
源自:2-3 join从句—右外连接

这里为什么不是from users as b呢,不是要从b表中查询吗

select b.user_name,b.over,a.over from user1 as a right join user2 as b on a.user_name=b.user_name where a.user_name is not null.

提问者:慕移动4157097 2017-02-28 17:17

个回答

  • 慕粉150349888
    2017-02-28 18:36:38

    as是给字段起别名,而表的别名直接在原表名后加空格加别名即可