Oracle黑马程序员P14-P17分页查询子查询自连接的练习多表查询当中的一些概念

P14-多表查询当中的一些概念

SQL> --多表查询当中的一些概念
SQL> --笛卡尔积
SQL> select *
  2  from emp e,dept d;

    ID NAME                                                         SEX BIRTHDAY    PHOTO                                                                               SALARY DEPTNO DNAME          LOC
------ ------------------------------------------------------------ --- ----------- -------------------------------------------------------------------------------- --------- ------ -------------- -------------

SQL> --等职连接
SQL> select *
  2  from emp e,dept d
  3  where e.deptno=d.deptno

猜你喜欢

转载自blog.csdn.net/weixin_43428283/article/details/111601375