SELECT E.ENAME, D.DNAME  FROM EMP E JOIN DEPT D ON (E.DEPTNO = D.DEPTNO);

解决方案 »

  1.   

    SELECT E.ENAME, D.DNAME FROM E,D WHERE E.DEPTNO = D.DEPTNO;
      

  2.   

    select t1.c1,t2.c1 from t1,t2 where t1.c1 = t2.c1(+)
      

  3.   

    楼上是外部连接,
    不知道搂主的需求是什么,呵呵。
    学习ing.
      

  4.   

    select t1.c1,t2.c1 from t1,t2 where t1.c1 = t2.c1(+)
    这个(+)表示什么意思?
      

  5.   

    (+)是根据你的需要而定,(+)分为左连接与右连接,在ORACLE中好象没有JOIN的用法。
      

  6.   

    左連接
    select type_name,school_name
    from type,
    school
    where type.school_id = school.school_id(+);右連接
    select type_name,school_name
    from type,
    school
    where type.school_id(+) = school.school_id;