当我执行下面显示org.hibernate.hql.ast.QuerySyntaxException 的查询时:意外令牌:反对靠近第 1 行,第 106 列 [SELECT NAME,address,country,district,state,cpr_no,age FROM tbl_patient_general WHERE MATCH (NAME,cpr_no)反对(:参数)]
Query q3 = session.createQuery("SELECT NAME,address,country,district,state,cpr_no,age FROM tbl_patient_general WHERE MATCH (NAME,cpr_no) AGAINST (:params)");
q3.setParameter("params", name);