提交 34e55130 编写于 作者: 骆昊的技术专栏's avatar 骆昊的技术专栏

修改了数据库相关文档

上级 b997b130
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
1. DDL 1. DDL
```SQL ```SQL
-- 创建数据库SRS -- 创建数据库SRS
drop database if exists SRS; drop database if exists SRS;
create database SRS default charset utf8; create database SRS default charset utf8;
...@@ -117,7 +116,6 @@ ...@@ -117,7 +116,6 @@
2. DML 2. DML
```SQL ```SQL
-- 插入学院数据 -- 插入学院数据
insert into tb_college insert into tb_college
(collname, collmaster, collweb) values (collname, collmaster, collweb) values
...@@ -194,7 +192,6 @@ ...@@ -194,7 +192,6 @@
3. DQL 3. DQL
```SQL ```SQL
-- 查询所有学生信息 -- 查询所有学生信息
select * from tb_student; select * from tb_student;
select stuid, stuname, stusex, stubirth, stuaddr, collid select stuid, stuname, stusex, stubirth, stuaddr, collid
...@@ -316,7 +313,6 @@ ...@@ -316,7 +313,6 @@
4. DCL 4. DCL
```SQL ```SQL
-- 创建名为hellokitty的用户 -- 创建名为hellokitty的用户
create user 'hellokitty'@'localhost' identified by '123123'; create user 'hellokitty'@'localhost' identified by '123123';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册