
数据库操作
常用数据库的使用,包括mysql、redis、mongodb
小狼女做笔记
这个作者很懒,什么都没留下…
展开
-
[mysql]mysql常用命令
关于库show database;drop database if exists db1;create database dbname charset=utf8;use dbname;关于表show tables;drop table if exists tablename;CREATE TABLE `table1` ( `id` bigint(20) NOT NULL auto_increment PRIMARY KEY, `dat` date NOT NULL DEFAULT原创 2022-06-12 14:39:31 · 140 阅读 · 0 评论 -
[Mysql]Mysql提示:Out of sort memory, consider increasing server sort buffer size
使用链接中的第二种方法,并且mysql需要重启才能修改成功。https://www.cnblogs.com/Coder-Photographer/p/12949062.html转载 2021-03-17 11:57:27 · 2833 阅读 · 0 评论 -
[mysql]mysql的insert ignore、insert into与replace into的区别
1、INSERT IGNORE 与INSERT INTO的区别insert ignore 与insert into的区别就是insert ignore会忽略数据库中已经存在 的数据,如果数据库没有数据,就插入新的数据,如果有数据的话就跳过这条数据。这样就可以保留数据库中已经存在数据,达到在间隙中插入数据的目的。 insert ignore into table(name) select name from table22、replace into 跟 insert 功能类似,不同点在于:repla转载 2021-01-28 15:27:12 · 239 阅读 · 0 评论