摘要: flashback table 表名 to before drop; 清理删除表的残留文件(清理回收站之后无法还原) purge recyclebin; 表的约束 非空约束 not null 主键约束 primary key 唯一约束 unique 外键约束 foreign key 检查约束 che 阅读全文
posted @ 2020-10-21 18:01 年少而为 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1.重命名 alter table 原表名 rename to 新表名 2.修改列名 alter table 表名 rename column 原列名 to 新列名 3.添加字段 alter table 表名 add (列名 数据类型) 4.删除字段 alter table 表名 drop colu 阅读全文
posted @ 2020-10-21 16:45 年少而为 阅读(74) 评论(0) 推荐(0) 编辑
摘要: centos7配置nodejs https://cncat.cn/post-185.html 阅读全文
posted @ 2020-10-05 22:19 年少而为 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ll -R 内核版本及系统版本 阅读全文
posted @ 2020-09-13 09:33 年少而为 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 创建: create [unique] index indexname on tablename(col); alter table tal_name add primary_key(cloumn_list);该语句添加一个主键,这说明索引值必须唯一,且不能为null alter table tal 阅读全文
posted @ 2020-09-06 16:56 年少而为 阅读(106) 评论(0) 推荐(0) 编辑
摘要: centos7端口相关命令 1.开放/关闭端口 firewall-cmd --zone=public --add-port=端口/tcp --permanent //开放端口 firewall-cmd --zone=public --remove-port=端口/tcp --permanent // 阅读全文
posted @ 2020-08-14 16:55 年少而为 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1。添加组 useradd -d 目录 用户名 修改密码 passwd 用户名 阅读全文
posted @ 2020-08-14 16:40 年少而为 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.distinct去重 去掉所有相同字段 2.group_concat函数 select id,group_concat(price separator ';') from goods group by id; 3.聚合函数加count 在select中使用count(distinct 字段) 阅读全文
posted @ 2020-08-10 16:30 年少而为 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 集合类的由来: 对象用于封装特有数据,对象多了需要存储,如果对象的个数不确定。 就使用集合容器进行存储。 集合特点:1,用于存储对象的容器。2,集合的长度是可变的。3,集合中不可以存储基本数据类型值。 集合容器因为内部的数据结构不同,有多种具体容器。不断的向上抽取,就形成了集合框架。 框架的顶层Co 阅读全文
posted @ 2020-03-04 17:08 年少而为 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 此为毕向东老师的上课笔记,搬运到此只为方便自己查看 泛型:jdk1.5以后出现的安全机制 好处: 1.将运行时的问题ClassCastException转到了编译时期 2.避免了强转的麻烦 <>:什么时候用? 答:当操作的引用数据类型不确定的时候就用<>,将要操作的引用数据类型传入即可,其实<>就是 阅读全文
posted @ 2020-03-04 14:57 年少而为 阅读(150) 评论(0) 推荐(0) 编辑