Ubuntu安装MySQL及常用操作 简述:MySQL是一个关系型数据库管理系统,由瑞典MySQL AB 公司开发,目前属于 Oracle 旗下产品。MySQL 最流行的关系型数据库管理系统,在 WEB 应用方面MySQL是最好的 RDBMS (Relational Database Managem ...
分类:
数据库 时间:
2020-06-13 21:42:36
阅读次数:
97
创建 创建数据库,创建表 create database test; create table user( id int not null primary key, name varchar(32) not null, password varchar(32) not null); 可以用desc查 ...
分类:
数据库 时间:
2020-06-13 21:41:28
阅读次数:
91
// 选择文件上传控件 var file = document.querySelector('#file'); var preview = document.querySelector('#preview'); file.onchange = function() { //1 创建文件读取对象 va ...
分类:
Web程序 时间:
2020-06-13 19:32:29
阅读次数:
115
1.HBase shell操作 hbase shell 查看版本 version 查看服务状态 status 查看有哪些表 list 创建表 create 'students','info' list 查看表结构 describe 'students' 插入数据 put 'students','10 ...
分类:
其他好文 时间:
2020-06-13 17:33:15
阅读次数:
47
原文:看似简单的一道SQL面试题,你是否能够很快写出答案? 黄伟呢 数据分析与统计学之美 2020-06-13 https://mp.weixin.qq.com/s/BBsN46t1KQ3tW13gLdBmcw 原表数据 目标表输出: -- 创建表 create table student ( id ...
分类:
数据库 时间:
2020-06-13 12:56:06
阅读次数:
87
SQL语言分为五类1.DDL:Data Definition Language,数据定义语言,包括了:create,drop,alter,truncate(这是删除并新建表,可消除自增的历史最大值); 2.DML:Data Manipulation Language,数据操作语言,包括了:inser ...
分类:
数据库 时间:
2020-06-12 17:27:46
阅读次数:
66
数据库查询语言(Structured Query Language) 数据库查询语言: DDL(data definition language) -数据定义语言,建库建表 DML (data manipulate language ) -数据操作语言,增删改 DQL (data query lan ...
分类:
数据库 时间:
2020-06-12 12:44:31
阅读次数:
64
任何计算机存储数据,都需要字符集,因为计算机存储的数据其实都是二进制编码,将一个个字符,映射到对应的二进制编码的这个映射就是字符编码(字符集)。这些字符如何排序呢?决定字符排序的规则就是排序规则。 查看内置字符集与比较规则 通过show charset;命令,可以查看所有的字符集。 以下仅展示了我们 ...
分类:
数据库 时间:
2020-06-11 21:43:11
阅读次数:
60
参考文章: MySQL百万级数据量分页查询方法及其优化 MySQL分页查询优化 重点提一下: 在优化分页语句过程中,一定注意查询的语句添加排序字段,一定自己建表实践,有的可能不一定有效果哦 比如下面这两个语句,返回的结果就不是一样的。具体什么原因可以看看我另一篇博客 MySQL 默认排序是什么 SE ...
分类:
数据库 时间:
2020-06-11 19:52:52
阅读次数:
74
在建表时: `create_time` timestamp not null default current_timestamp comment'创建时间',--将系统当前时间设为默认值 `update_tiem` timestamp not null default current_timesta ...
分类:
其他好文 时间:
2020-06-11 01:03:08
阅读次数:
62