日期:2014-05-16 浏览次数:20852 次
select t.QN, t.ON from ( Select Question.QuestionName QN, Option.OptionName ON, rownum as rn from Question a, Option b where a.QuestionID = b.QuestionID and a.QuestionID=1 ) t where t.rn = 1
------解决方案--------------------
select decode(rn,1,QN, null) QN t.ON from ( Select Question.QuestionName QN, Option.OptionName ON, rownum as rn from Question a, Option b where a.QuestionID = b.QuestionID and a.QuestionID=1 ) t where