摘要: mybatis时,设置Map返回,当值为空时属性也会没有 在application.properties中加入下面配置,将会解决这个问题。 #当查询数据为空时字段返回为null,不加这个查询数据为空时,字段将被隐藏mybatis.configuration.call-setters-on-nulls 阅读全文
posted @ 2019-08-21 09:00 疯子110 阅读(970) 评论(0) 推荐(0) 编辑
摘要: COALESCE (expression_1, expression_2, ...,expression_n)依次参考各参数表达式,遇到非null值即停止并返回该值。 如果所有的表达式都是空值,最终将返回一个空值。 使用COALESCE在于大部分包含空值的表达式最终将返回空值。 SELECT coa 阅读全文
posted @ 2019-08-21 08:59 疯子110 阅读(5153) 评论(0) 推荐(0) 编辑
摘要: alter table tbl_exam alter column question type character varing(1000); alter table tbl_exam alter column question type numeric(18,4); 阅读全文
posted @ 2019-08-21 08:58 疯子110 阅读(11070) 评论(1) 推荐(0) 编辑