
Mysql基础
文章平均质量分 51
小胖超凶哦!
睡觉了,别学了!
展开
-
MySQL练习
数据表介绍 1.学⽣表 Student(SId,Sname,Sage,Ssex) SId 学⽣编号 Sname 学⽣姓名 Sage 出⽣年⽉ Ssex 学⽣性别 2.课程表 Course(CId,Cname,TId) CId 课程编号 Cname 课程名称 TId 教师编号 3.教师表 Teacher(TId,Tname) TId 教师编号 Tn转载 2022-03-07 21:43:14 · 488 阅读 · 0 评论 -
函数,union,join
mysql> select rand();+--------------------+| rand() |+--------------------+| 0.7015205088085686 |+--------------------+1 row in set (0.00 sec)mysql> select floor(1.23);+-------------+| floor(1.23) |+-------------+| .原创 2022-03-05 21:25:44 · 1313 阅读 · 0 评论 -
建库建表及结构
mysql> create database db3;Query OK, 1 row affected (0.00 sec)mysql> create database if not exists db3;Query OK, 1 row affected, 1 warning (0.00 sec)mysql> drop database if exists db3;Query OK, 0 rows affected (0.01 sec)mysql> show .原创 2022-03-04 22:01:04 · 100 阅读 · 0 评论 -
mysql5.7
安装mysql5.7 下载yum Repository 如果没有wget命令,则可以使用yum install wget wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm Centos换源 1. 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup原创 2022-03-03 19:09:12 · 96 阅读 · 0 评论