小编joa*_*oan的帖子

在运行我的java代码时,我面临着这个错误 - >

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Run Code Online (Sandbox Code Playgroud)

我的代码:

public static void loanenquiry(String ApplicationID,String LoanNumber,String RIMNumber,String custname,String fromdate,String todate) {
    String wherestring = "SELECT * FROM bf_loanmaster WHERE";       

    try {
        if(ApplicationID != null) {
            wherestring = wherestring + "ApplicationID ="+BillAction.StringtoInt(ApplicationID)+"";
        }

        if(LoanNumber != null ) {
            if(ApplicationID != null) {
                wherestring =  wherestring  +  "AND LoanNumber = "+BillAction.StringtoInt(LoanNumber)+" "; …
Run Code Online (Sandbox Code Playgroud)

java mysql sql

-1
推荐指数
1
解决办法
83
查看次数

标签 统计

java ×1

mysql ×1

sql ×1