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=?" ;
答案 0 :(得分:1)
在
的末尾添加一个空格" join tbl_complain_status st on"
和@RajithPemabandu
也在"join tbl_departments dept on"