程序运行出现的这一大堆错误让我抓狂,通过百度note毫无收获,我以为是我的tomcat版本太高,尝试了想用自带的服务器,但是没找到,看了错误,大概是说第一行,然后试着百度了message,结果就碰到了跟我一样的情况,很简单,就是自带的页面有好多语句,但是,我不需要那么多,所以呢,就删除了一些,但是删除之后,紧挨着了,没有空格,就引发了上面的错误。改正之后,程序运行就OK了 改正前:<%@ p
mxl中的语句如下 <select id="statToday" resultType="com.dahua.la.business.model.vo.StatSysResultVO">select a,b,count(1) as totalfrom tablewhere a is not nulland b is not nulland operateTime >= #{startTime,
Hive中的not in函数有一个隐藏的陷阱,当not in() 中的数值包含NULL,匹不上的数据会返回NULL而不是True。 所以当在where中使用not in子查询进行筛选,一定要记得去除NULL值。 样例代码: --not in的原始结果select num,num not in (null,'2'), num not in (null,'2') and true