SELECT
 O.親メニュー名,
 K.子メニュー名
FROM 
    SNJ_OYA_MENYU O,SNJ_KO_MENYU K
 WHERE
    O.親メニューID = K.親メニューID
ORDER BY
    O.親メニューID,K.子メニューID

解决方案 »

  1.   

    实际执行的sql就是这个?
      

  2.   

    改成下面这个样子就没有问题.有认能解释一下是什么原因?                SELECT 
                     O."親メニュー名",
                     K."子メニュー名"
                    FROM 
                     SNJ_OYA_MENYU O,SNJ_KO_MENYU K
                    WHERE
                     O."親メニューID" = K."親メニューID"
                    ORDER BY
                     O."親メニューID",K."子メニューID"
      

  3.   

    FYI:最好用英文做字段名和表名
      

  4.   

    ORA-00936 missing expressionCause: A required part of a clause or expression has been omitted. For example, a SELECT statement may have been entered without a list of columns or expressions or with an incomplete expression. This message is also issued in cases where a reserved word is misused, as in SELECT TABLE.Action: Check the statement syntax and specify the missing component.检查的你的SQL语句
      

  5.   

    ORA-00936 missing expressionCause: A required part of a clause or expression has been omitted. For example, a SELECT statement may have been entered without a list of columns or expressions or with an incomplete expression. This message is also issued in cases where a reserved word is misused, as in SELECT TABLE.Action: Check the statement syntax and specify the missing component.