logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

git命令:将多个commit提交记录修改为1条

本人也是最近2周才开始使用git,有些也理解不到位,在工作中实操之后记录下来,工作环境linux ubuntu。变基时有六个命令可用:pickpick只是意味着包括提交。重新进行命令时,重新安排pick命令的顺序会更改提交的顺序。如果选择不包括提交,则应删除整行。reword该reword命令与相似pick,但是使用后,重新设置过程将暂停并为您提供更改提交消息的机会。提交所做的任何更改均不受影响。

MySQL中的alter table操作之add/modify/drop列

alter table的操作有增加列、删除列和修改列的长度等create table t1 (c1 int primary key) engine = innodb;// 增加一个列c2alter table t1 add c2 varchar(16379);drop table t1;create table t1 (c1 int primary key, c2 varchar(50)) eng

mysql中的if [not] exists

最近在MySQL数据库的基础上开发分布式的数据库,需要支持一个if [not] exists语法。学习了SQL语法解析部分,总结下:1、在MySQL中,创建表时支持create table if not exists db.table_name ....create table if not exists test1(c1 int primary key,c2 varchar(50))engine

MySQL中的insert ignore into讲解

最近工作中,使用到了insert ignore into语法,感觉这个语法还是挺有用的,就记录下来做个总结。insert ignore into : 忽略重复的记录直接插入数据。包括两种场景:1、插入的数据是主键冲突时insert ignore into会给出warnings,show warnings就可以看到提示主键冲突;[test]> create table tt(c1 int pr

#mysql
MySQL中的insert ignore into讲解

最近工作中,使用到了insert ignore into语法,感觉这个语法还是挺有用的,就记录下来做个总结。insert ignore into : 忽略重复的记录直接插入数据。包括两种场景:1、插入的数据是主键冲突时insert ignore into会给出warnings,show warnings就可以看到提示主键冲突;[test]> create table tt(c1 int pr

#mysql
网卡驱动收发包过程图解

网卡网卡工作在物理层和数据链路层,主要由PHY/MAC芯片、Tx/Rx FIFO、DMA等组成,其中网线通过变压器接PHY芯片、PHY芯片通过MII接MAC芯片、MAC芯片接PCI总线PHY芯片主要负责:CSMA/CD、模数转换、编解码、串并转换MAC芯片主要负责:1. 比特流和帧的转换:7字节的前导码Preamble和1字节的帧首定界符SFD2. CRC校验3. Packet Filtering

#网络#linux#网络协议
Linux下修改只读文件

最近在linux Ubuntu下配置hadoop,遇到了一个只读文件core-site.xml,需要修改其中的内容,但是该文件是只读的。chattr -i 文件让只读文件可编辑。chattr +i 文件让文件只读。sudo vim 文件。

#linux#ubuntu#运维
mysql中的if [not] exists

最近在MySQL数据库的基础上开发分布式的数据库,需要支持一个if [not] exists语法。学习了SQL语法解析部分,总结下:1、在MySQL中,创建表时支持create table if not exists db.table_name ....create table if not exists test1(c1 int primary key,c2 varchar(50))engine

MySQL中的alter table操作之add/modify/drop列

alter table的操作有增加列、删除列和修改列的长度等create table t1 (c1 int primary key) engine = innodb;// 增加一个列c2alter table t1 add c2 varchar(16379);drop table t1;create table t1 (c1 int primary key, c2 varchar(50)) eng

MySQL中的insert ignore into讲解

最近工作中,使用到了insert ignore into语法,感觉这个语法还是挺有用的,就记录下来做个总结。insert ignore into : 忽略重复的记录直接插入数据。包括两种场景:1、插入的数据是主键冲突时insert ignore into会给出warnings,show warnings就可以看到提示主键冲突;[test]> create table tt(c1 int pr

#mysql
暂无文章信息