您的SQL语法有错误;

时间:2017-08-10 01:04:28

标签: java

public final static String COMPLAIN_GETById="SELECT * FROM tbl_complain com" +
" join tbl_customers cust on" +" cust.customer_id=com.customer_id" +
" join tbl_departments dept on" +"dept.department_id=com.department_id" +
" join tbl_complain_status st on" +"st.status_id=com.status_id 
                                              WHERE cust.customer_id=?" ;

1 个答案:

答案 0 :(得分:1)

的末尾添加一个空格
" join tbl_complain_status st on"

和@RajithPemabandu

也在"join tbl_departments dept on"

之后