Hibernate中使用sql語句結尾千萬別帶分號。
select title_cn, search_field
from tb_title_c
where table_name = 'TB_SUPPLIER_C'
order by order_num asc;
這段代碼在數據庫中執行無誤。但是在java後臺卻一直報錯,原因就是hibernate不能接受sql後面帶分號。
Hibernate中使用sql語句結尾千萬別帶分號。
select title_cn, search_field
from tb_title_c
where table_name = 'TB_SUPPLIER_C'
order by order_num asc;
這段代碼在數據庫中執行無誤。但是在java後臺卻一直報錯,原因就是hibernate不能接受sql後面帶分號。