前期数据准备 通过程序往数据库插入 50w 数据 数据表: CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_date` datetime NOT NULL, `time_timestamp` timestamp N ...
分类:
数据库 时间:
2020-07-18 16:02:17
阅读次数:
70
1. 创建表——create create table t_article( id int(11) primary key auto_increment, name varchar(255) not null )engine=innodb default charset=utf8; 2. 修改表—— ...
分类:
其他好文 时间:
2020-07-18 00:54:10
阅读次数:
91
https://mp.weixin.qq.com/s/2obpN57D8hyorCMnIu_YAg ...
分类:
其他好文 时间:
2020-07-18 00:37:13
阅读次数:
99
* 概念: 对表中的数据进行限定,保证数据的正确性、有效性和完整性。 * 分类: 1. 主键约束:primary key 2. 非空约束:not null 3. 唯一约束:unique 4. 外键约束:foreign key * 非空约束:not null,值不能为null 1. 创建表时添加约束 ...
分类:
数据库 时间:
2020-07-18 00:31:42
阅读次数:
90
play_record表设计 DROP TABLE IF EXISTS `play_record`; CREATE TABLE `play_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, ...
分类:
其他好文 时间:
2020-07-17 16:06:01
阅读次数:
74
主从复制和GITD复制区别 1.在主从复制环境中,主库发生过的事务,在全局都是由唯一GTID记录的,更方便Failover 2.额外功能参数(3个) 3.change master to 的时候不再需要binlog 文件名和position号,MASTER_AUTO_POSITION=1; 4.在复 ...
分类:
其他好文 时间:
2020-07-17 14:07:42
阅读次数:
61
1、在组件中直接使用style,注意,div1各个属性值加双引号 const div1 = { width: "300px", margin: "30px auto", backgroundColor: "#44014C", //驼峰法 minHeight: "200px", boxSizing: ...
分类:
Web程序 时间:
2020-07-17 14:00:41
阅读次数:
74
根据token从查询个人信息接口开发 直接解密token,获取个人信息 通过token解密查询数据库获取个人信息 UserController.java package net.ybclass.online_ybclass.controller; import net.ybclass.online_ ...
分类:
其他好文 时间:
2020-07-17 13:58:11
阅读次数:
60
在ios端默认的长按选择,可以对文字进行复制粘贴。但是在实际开发中,针对一些按钮一般要避免长按时弹出选中文字,或者一些罩层要避免弹出。 这篇文章通过css3实现禁止ios端长按复制选中文字的方法。 css代码如下: *{ -webkit-touch-callout:none; /*系统默认菜单被禁用 ...
分类:
移动开发 时间:
2020-07-17 09:17:20
阅读次数:
97
在实际工作过程中,有时因为生产环境已有历史数据原因,需要测试环境数据id从某个值开始递增,此时,我们需要修改数据库中自增ID起始值, 下面以MySQL为例,表名:users; 建表时添加 create table users(id int auto_increment primary key,666 ...
分类:
数据库 时间:
2020-07-16 21:38:29
阅读次数:
87