|
版本: |
BeX5V3.5 |
小版本号: |
3.8 |
|
|
数据库: |
MySQL |
服务器操作系统: |
Windows |
应用服务器: |
|
客户端操作系统: |
Windows 7 |
浏览器: |
|
|
|
om.justep.exception.KSQLException: 编码: JUSTEP154115; 提示: KSQL语法错误, now(),interval ^^0 month ), '%Y-中未找到需要的元素, 位置801期望是) at com.justep.exception.KSQLException.create(Unknown Source) at com.justep.system.ksql.token.TokenManager.matchToken(Unknown Source) at com.justep.system.ksql.token.TokenManager.match(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.localSqlFunctionExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.multiExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.addExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.localSqlFunctionExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.multiExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.addExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.compExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.notExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.andExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.orExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.multiExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.addExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.compExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.notExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.andExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.orExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.multiExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.addExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.compExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.notExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.andExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.orExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.conditionExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.whereExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source) at com.justep.system.ksql.parser.QueryParser.start(Unknown Source) at com.justep.system.ksql.parser.QueryParser.start(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source) ... 35 more
这是ksql语句:SELECT Jc_cus_customermanager.*,Jc_cus_follow.Fol_Person as fol_Fol_Person,Jc_cus_follow.Fol_Date as fol_Fol_Date,Jc_cus_follow.Fol_Way as fol_Fol_Way,Jc_cus_follow.ActDetails as fol_ActDetails,Jc_cus_follow_comment.sCreateTime as com_sCreateTime,Jc_cus_follow_comment.sPersonName as com_sPersonName,Jc_cus_follow_comment.Remark as com_Remark FROM Jc_cus_customermanager Jc_cus_customermanager optional join Jc_cus_follow Jc_cus_follow on Jc_cus_customermanager.Fol_Id = Jc_cus_follow optional join Jc_cus_follow_comment Jc_cus_follow_comment on Jc_cus_follow.follow_lastID = Jc_cus_follow_comment WHERE ((Cus_Source='市场') AND (Jc_cus_customermanager.Cus_SourceSegments='公司') AND ( sql.date_format( Jc_cus_customermanager.fCreateTime, '%Y-%m' ) = sql.date_format(sql.date_sub( sql.now(),interval 0 month ), '%Y-%m') )) LIMIT 0, 20
|
|