MySQL
weixin_44729445
这个作者很懒,什么都没留下…
展开
-
MySQL语法二
1.排序:order by 1)order by 滞后;什么都不写就默认升序 select num,name,age from ruozedata.studentinfo where name like 'r%' order by num; 2)asc 升序 select num,name,age from ruozedata.studentinfo where name like 'r%' ...原创 2019-07-09 11:01:09 · 106 阅读 · 0 评论 -
MySQL语法之join语法
join语法,多表操作 创建一个a表和一个b表 create table testa(aid int,aname varchar(100),address varchar(100)); create table testb(bid int,bname varchar(100),age int); 插入a表数据 insert into testa values(1,'x1','sh'); inse...原创 2019-07-09 11:08:10 · 118 阅读 · 0 评论 -
MySQL常见命令
1.进入MySQL命令 mysql直接回车:空账号空密码(一般不用) mysql -uroot -p 直接回车,输入密码后再回车 2.MySQL三句话 create database ruozedata; grant all privileges on ruozedata.* to ruoze@‘localhost’ identified by ‘123456’; flush privileg...原创 2019-07-04 15:56:04 · 75 阅读 · 0 评论 -
MySQL部署
MySQL的tar包部署 1.rz上传下载好的MySQL包 [root@hadoop001 ~]# rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz... mysql-5.6.23-li...原创 2019-07-04 15:33:37 · 451 阅读 · 0 评论 -
MySQL语法
database(DB):表、视图、索引、存储过程、触发器、events 在大数据学习使用过程中,主要掌握前三个即可 1.字段类型——用来规范数据 数值型 int 整数 long 长整数 float 单精度 double 双精度 decimal 小数值 跟钱挂钩的 字符串类型 ‘abc’ char 定长字符串 0-255字节 abc–》abc255 自动补全,造成资源浪费 ...原创 2019-07-04 19:18:35 · 128 阅读 · 0 评论 -
MySQL练习题
创建三张表并插入数据 --部门表 dept部门表(deptno部门编号/dname部门名称/loc地点) create table dept ( deptno numeric(2), dname varchar(14), loc varchar(13) ); insert into dept values (10, 'ACCOUNTING', 'NEW YORK'); in...原创 2019-07-11 18:09:50 · 190 阅读 · 0 评论