标签:
sql 语句拼接报错:
No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
原因:字符串相加时,加号前后有空格
例如(这样是不行的):
sql =+ "and c.efficientStatus = "+courseStatus //错误
要把加号后面的空格去掉就行了,简直了。
最后
以上就是谨慎唇彩最近收集整理的关于不注意的小错误(java.lang.String.positive() is applicable)的全部内容,更多相关不注意的小错误(java.lang.String.positive()内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复