SQL错误代码SQL状态[S1093];错误代码[0];

时间:2016-06-15 04:48:40

标签: java sql sql-server

我在我的一个JSP-Servlet应用程序上获得了以下日志。

任何人都可以解释一下**SQL state [S1093]; error code [0];**的含义吗?或者可能是什么问题? 我已经检查了列名JOB_SYNDICATELOCALE,这是正确的。

getSchedulerDetail operation started.
12:50:35,181 INFO  [stdout] (ajp-/0.0.0.0:9209-6) Error in getSchedulerDetail() StatementCallback;
 uncategorized SQLException for SQL [SELECT * FROM BVTaskSchedulerDetails];
 SQL state [S1093];
 error code [0];
 The column name JOB_SYNDICATELOCALE is not valid.;
 nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: The column name JOB_SYNDICATELOCALE is not valid.

以下是java代码,它调用查询 -

public List getSchedulerDetail() {
        System.out.println("getSchedulerDetail operation started.");        
        List schedulerDetails = null;
        try {
            String query = getQuery(DynamicSchedulerConstants.SELECT_SCHEDULER_DETAIL);
            schedulerDetails = this.getJdbcTemplate().query(query, new SchedulerDetailsMapper());
        } catch(DataAccessException dae) {
            System.out.println("Error in getSchedulerDetail() " + dae.getLocalizedMessage());
        }
        System.out.println("getSchedulerDetail operation complete.");       
        return schedulerDetails;
    }

0 个答案:

没有答案