create table questionType(
 qid int primary key,
 typename varchar2(200) not null)create table question(
tid int primary key,
content varchar2(200) not null,
qid int references questionType(qid)
)
select question.qid,question.content from question left join questiontype on question.qid = questionType.Qid我这样写错了吗?总是报sql语句未正确结束

解决方案 »

  1.   

    select question.qid,question.content from question left join questiontype on question.qid = questionType.Qid;加个分号试试..------------------------------------------------------------------------------ 
    Blog: http://blog.csdn.net/tianlesoftware 
    网上资源: http://tianlesoftware.download.csdn.net 
    相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx 
    Q Q 群:62697716
      

  2.   

    啊!这就不知道了,我记得sql2005里面是这样写的,但是oracle里面就不知道了。有其他的方法实现同样的效果吗?
      

  3.   

    select * from table_a a, table_b b where a.XX=b.XX(+)
      

  4.   

    加分号,楼主肯定是一起执行的。
    create table questionType(
    qid int primary key,
    typename varchar2(200) not null
    );
    create table question(
    tid int primary key,
    content varchar2(200) not null,
    qid int references questionType(qid)
    );
    select question.qid,question.content from question left join questiontype on question.qid = questionType.Qid;