错误分析,因为是在java代码里写的sql在换行时少加了一个","号(注意是英文逗号)。注意每次换行拼接的时候双引号后面都加一个空格,防止sql拼接错误。
错误代码
String sql = " SELECT T.ID, T.LIB_TYPE, T.PHONE_NUMBER, T.PHONE_NUMBER_STATUS, T.BELONG_ORG_NAME, T.CREATE_PERSON, T.VALID_STATUS"
+ " T.CREATE_TIME, T.MODIFY_TIME FROM T_DELILIB_PHONE T WHERE T.ID IS NOT NULL";
正确代码
String sql = " SELECT T.ID, T.LIB_TYPE, T.PHONE_NUMBER, T.PHONE_NUMBER_STATUS, T.BELONG_ORG_NAME, T.CREATE_PERSON, T.VALID_STATUS,"
+ " T.CREATE_TIME, T.MODIFY_TIME FROM T_DELILIB_PHONE T WHERE T.ID IS NOT NULL";