Commit 34e55130 authored by jackfrued's avatar jackfrued

修改了数据库相关文档

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment