Oracle Sql学习笔记

来源:互联网 发布:sql 截断 编辑:程序博客网 时间:2024/05/16 00:51


select a.tag_id, a.tag_name,b.usernum,b.userscore from tagbase a right join  usertag b on b.tag_id = a.tag_id where rownum <=2 and a.tag_level=2 order by b.usernum desc;select * from tagbase a left outer join  usertag b on a.tag_id = b.tag_id;


0 0