1. select a.* from emp a ,dept b where a.deptno=b.deptno and b.dname='10';2 。delete from sc s
 inner join course c on s.cno=c.cno 
 join teacher t on c.tno=t.tno
 where t.tname='谌燕';

解决方案 »

  1.   

    这两条本身表达的意思不一样啊
    第二条相当于:
    delete from sc s,course c,teacher t
    where s.cno=c.cno and c.cno=t.tno and t.tname='谌燕'
      

  2.   

    这两个一个是删除,一个是查询.
    另:删除那句,在oracle中不能这么写.
      

  3.   


    select a.* from emp a ,dept b 
      where a.deptno=b.deptno and b.dname='10';
      
    // 查找部门号为10的所有员工信息delete from sc s
     inner join course c on s.cno=c.cno  
     join teacher t on c.tno=t.tno
     where t.tname='谌燕';// 将老师为"谌燕"的学生信息删除
      

  4.   

    区别就是一个是select一个是delete