摘要: 有时候总认为count(*)会比count(1)或者count(column name)慢,事实上是分情况处理。 比如: 初始化语句 建立一张表并插入数据: create table test2 (id BIGINT PRIMARY key, name varchar(24))ENGINE=INNO 阅读全文
posted @ 2017-09-27 18:44 Azjs丶V1 阅读(601) 评论(0) 推荐(0)
摘要: 判断某个字符串是否为空的条件是 str.length == 0 或者 str == null StringUtils.isEmpty(null) = true StringUtils.isEmpty("") = true StringUtils.isEmpty(" ") = false //注意在 阅读全文
posted @ 2017-09-27 18:14 Azjs丶V1 阅读(520) 评论(0) 推荐(0)