Post Page Advertisement [Top]



このエラーの理由は、通常、'" , . ; "このような記号を正しく使ってない場合が多いです。

クエリーの記号を再チェックしてください。

一つ見つからない例えを挙げます。



String SQL_SELECTPAGE = "select b.writer, b.title, b.topicdate, b.lecturekey, b.tcontent" +
        "from (select rownum rn, a.* from (select * from topics WHERE LECTUREKEY = #{lid}" +
        "order by topicdate desc) a) b" +
        "where rn between #{c.start} and #{c.end}";

このクエリーには一つの間違いがあり、正常的に作動しません。




String SQL_SELECTPAGE = "select b.writer, b.title, b.topicdate, b.lecturekey, b.tcontent " +
        "from (select rownum rn, a.* from (select * from topics WHERE LECTUREKEY = #{lid} " +
        "order by topicdate desc) a) b " +
        "where rn between #{c.start} and #{c.end}"


違いが見えますか?

各ラインの最後の空白です。

空白もまた気を付けてください。



댓글 없음:

댓글 쓰기

Bottom Ad [Post Page]

| Designed by Colorlib