sql 语句拼接报错:

     No signature of method: java.lang.String.positive() is applicable for argument types: () values: []

原因:字符串相加时,加号前后有空格

例如(这样是不行的):

sql =+ "and c.efficientStatus = "+courseStatus    //错误

 

要把加号后面的空格去掉就行了,简直了。

 

 

这是自己学习过程中的记录,方便自己回顾,好记性不如烂笔头。

作者:艺至

         ----2016-03-15 19:28:44

 

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-12-21
  • 2022-01-09
  • 2021-10-24
  • 2021-12-28
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2021-12-01
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案