会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Distance
努力成为更好的人!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
28
下一页
2021年6月30日
truncate table(截断表)
摘要: truncate table(截断表) 是清空一个表,是一个DDL语言,效率高,它与delete有如下区别。delete是DML语言;delete时会触发与表相关的触发器,而truncate不会;delete可以有删除条件,truncate没有。在Oracle中如果删除了表中的某一条数据,还可以通过
阅读全文
posted @ 2021-06-30 09:55 魏三斗
阅读(1070)
评论(0)
推荐(0)
2021年6月25日
mysql 添加/删除列(column)
摘要: 1、添加 格式:alter table 表名 add column 列名 列的数据类型;示例alter table test4 add column addr text; 2、删除 格式: alter table 表名 drop column 列名; 示例: alter table test4 dr
阅读全文
posted @ 2021-06-25 07:10 魏三斗
阅读(693)
评论(0)
推荐(0)
2021年6月18日
Mysql 忘记密码
摘要: 一、更改my.cnf配置文件 1、用命令编辑my.cnf配置文件,即 vim /etc/my.cnf vi /etc/my.cnf nano /etc/my.cnf 2.在[mysqld]下添加skip-grant-tables,然后保存并退出 skip-grant-tables 3. 重启mysq
阅读全文
posted @ 2021-06-18 08:57 魏三斗
阅读(42)
评论(0)
推荐(0)
2021年4月20日
Elasticsearch - 相关配置
摘要: Elasticsearch - 相关配置:
阅读全文
posted @ 2021-04-20 10:42 魏三斗
阅读(32)
评论(0)
推荐(0)
2021年4月6日
aws EFS
摘要: 恢复内容开始 Amazon EFS 提供了两种存储类: 1. 标准存储类 2. 不频繁访问存储类 (EFS IA) EFS IA 提供针对每天未访问的文件进行了成本优化的性价比。只需在文件系统上启用 EFS 生命周期管理,根据您选择的生命周期策略,未被访问的文件将自动且透明地迁移到 EFS IA。
阅读全文
posted @ 2021-04-06 09:38 魏三斗
阅读(187)
评论(0)
推荐(0)
2021年4月4日
windows 设置mysql开机自启
摘要: 1. 安装完mysql 完,切换到mysql/bin目录下 2. 管理员权限打开cmd 3. 执行 mysqld --initialize-insecure 4. 提示安装完成。 5. 打开服务,启动mysql 服务。 6. 重启。
阅读全文
posted @ 2021-04-04 13:15 魏三斗
阅读(5348)
评论(0)
推荐(0)
2021年4月2日
Centos7 修改时间为中国时区
摘要: 执行命令更改为中国上海时区: cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 提示:cp: overwrite ‘/etc/localtime’?,输入y [root@localhost log]# cp /usr/share/zoneinfo
阅读全文
posted @ 2021-04-02 07:34 魏三斗
阅读(1137)
评论(0)
推荐(0)
2021年3月23日
Centos7 安装selenium(python3.7 centos7 )
摘要: 1. 安装python 2. 安装selenium pip3 install selenium 因为centos7 会自带python2 ,所以执行python文件的时候需要: python3 ./ xxx.py 3. 安装Chrome 指定yum源 wget -O /etc/yum.repos.d
阅读全文
posted @ 2021-03-23 10:23 魏三斗
阅读(345)
评论(0)
推荐(0)
2021年3月18日
mysql (create temporary table table_name )临时表创建
摘要: 一般在数据量比较大的查询中,用in()等查询条件,会严重影响查询效率。 这时可以用 create temporary table table_name select id,name from table 创建临时表 使用临时表时注意事项: 1.自己所用的数据库账号要有建立临时表的权限;2.在同一条s
阅读全文
posted @ 2021-03-18 10:54 魏三斗
阅读(1210)
评论(0)
推荐(0)
2021年3月12日
C# 字符串 String、StringBuffer和StringBuilder的区别
摘要: C# 字符串 String、StringBuffer和StringBuilder的区别 String: String类是不可变类,即一旦一个String对象被创建以后,包含在这个对象中的字符序列是不可改变的,直至这个对象被销毁。 StringBuffer: StringBuffer对象则代表一个字符
阅读全文
posted @ 2021-03-12 10:06 魏三斗
阅读(1653)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
28
下一页
公告