Hibernate的sql不能以分号结尾。org.hibernate.exception.DataException: could not execute query

Hibernate中使用sql语句结尾千万别带分号。java select title_cn, search_field from tb_title_c where table_name = 'TB_SUPPLIER_C' order by order_num asc; 这段代码在数据库中执行无误。可是在java后台却一直报错,缘由就是hibernate不能接受sql后面带分号。web
相关文章
相关标签/搜索