01 2022 档案
java 8常用转换方法
摘要:List<对象>遍历 list.stream().forEach(item-> { XXX业务 }); List<对象> 判定是否存在符合条件的对象 Boolean exists = list.stream().filter(item-> (123).equals((Integer) item.ge 阅读全文
posted @ 2022-01-06 10:01 1161588342 阅读(195) 评论(0) 推荐(0)
Mysql 给表某个字段加唯一约束
摘要:参考网址: http://c.biancheng.net/view/2445.html DROP TABLE IF EXISTS `test`;CREATE TABLE `test` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增ID', 阅读全文
posted @ 2022-01-06 09:47 1161588342 阅读(560) 评论(0) 推荐(0)
MySQL实现自增序列
摘要:参考:https://blog.csdn.net/weixin_42383575/article/details/103023379 新建序列 ### 新建序列表 drop table if exists sequence; create table sequence( seq_name VARCH 阅读全文
posted @ 2022-01-05 13:21 1161588342 阅读(1276) 评论(0) 推荐(0)