随笔分类 -  MySql

MYSQL5.7下载安装图文教程
摘要:MYSQL5.7下载安装图文教程 一、 MYSQL两种安装包格式 MySQL安装文件分为两种,一种是msi格式的,一种是zip格式的。zip格式相当于绿色版,不需要安装,只需解压缩之后就可以使用了,但是要进行配置。msi格式是安装版。 二、 MYSQL官网下载 1.官网地址:https://www. 阅读全文

posted @ 2021-11-06 15:45 hello_殷 阅读(4188) 评论(0) 推荐(0)

Mysql基础教程:(七)MySQL基础练习
摘要:MySQL基础练习 一、创建student和score表 CREATE TABLE student (id INT(10) NOT NULL PRIMARY KEY ,name VARCHAR(20) NOT NULL ,sex VARCHAR(4) ,birth YEAR,department V 阅读全文

posted @ 2021-11-06 11:55 hello_殷 阅读(343) 评论(0) 推荐(0)

Mysql教程:(六)修改语句、、删除语句、字符查询like
摘要:1、修改语句 update 表名 set where 条件 mysql> update student set birth=1988,department='中文系' where id=901 and name='张老大'; 把张老大的出生日期修改为1988,院系修改成中文系 mysql> upda 阅读全文

posted @ 2021-11-06 11:43 hello_殷 阅读(746) 评论(0) 推荐(0)

Mysql教程:(五)多表查询
摘要:多表查询 select name,student.class,student.number,maths,chinese,english from student,score where student.id=score.id; 1、题目练习 (1)显示总分大于200的学生信息: select stu 阅读全文

posted @ 2021-11-06 11:37 hello_殷 阅读(132) 评论(0) 推荐(0)

Mysql教程:(四)连接查询
摘要:连接查询 1、左连接查询: mysql> select stu.*,sc.*,maths+sc.chinese+sc.english from student stu left join score sc on stu.id=sc.id; 注释:stu:为别名。student stu left jo 阅读全文

posted @ 2021-11-06 11:33 hello_殷 阅读(85) 评论(0) 推荐(0)

Mysql教程:(三)运算符:数学运算符
摘要:运算符:数学运算符 mysql> select class,number,maths,maths+5 from score; mysql>select class,number,chinese+maths+english from score; mysql> select *,maths+chine 阅读全文

posted @ 2021-11-06 11:29 hello_殷 阅读(48) 评论(0) 推荐(0)

Mysql教程:(二)分组与函数查询group by
摘要:分组与函数查询 温馨提示:分组之后查询其他函数结果是不正确的; 分组函数:group by 按班级分组,查询出每班数学最高分:select class,max(maths) from score group by class; 不分班级查询总人数最高分: select max(maths) from 阅读全文

posted @ 2021-11-06 11:26 hello_殷 阅读(139) 评论(0) 推荐(0)

Mysql教程:(一)数据库常用基础命令
摘要:数据库常用命令 1、登录 进入数据库,在win系统下,打开cmd,切换用户权限,进入root: 沒权限,用root登录: mysql -uroot 如果root有密码: mysql -uroot -p 2、数据库创建 查询所有数据库: show databases; 创建数据库: create da 阅读全文

posted @ 2021-11-06 11:20 hello_殷 阅读(209) 评论(0) 推荐(0)

导航

作者:hello.殷
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文链接,否则保留追究法律责任的权利。