FUNCTION (數據庫名).max does not exist.

修改前
<select id="selectMaxIdPro" resultType="java.lang.Integer">
    select
    max (project_id)
    from project
  </select>
修改後<select id="selectMaxIdPro" resultType="java.lang.Integer">
    select
    max(project_id)
    from project
  </select>
  mysql的原因,在使用函數查詢時,函數名後面不能加空格

報:FUNCTION (數據庫名).max does not exist.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章