select student.sno,sname,ssex,sage,sdept,sc.cno,grad
from student as s inner join sc as c on s.sno=c.sno

解决方案 »

  1.   

    select student.sno,sname,ssex,sage,sdept,sc.cno,grad
    from student s inner join sc c on s.sno=c.sno
      

  2.   

    select Student.sno,sname,ssex,sage,sdept,SC.cno,grad from Student,SC where Student.sno=SC.sno(*)
    亏你写得出这种的inner join是内关联
    找出两个表里同时都有的
    left join是左关联,
    找出第一个表所有的
    第一个表有,第二个表没有的时候,这个相就的地方是空right join是右关联
    与left join的关系好像相反
    第一是第二,第二是第一去看下books online吧