Skip to content

Commit 961094a

Browse files
committed
update docs
1 parent b54a37f commit 961094a

File tree

5 files changed

+147
-77
lines changed

5 files changed

+147
-77
lines changed
File renamed without changes.

docs/sql/common/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## 📖 内容
44

5-
### [关系型数据库面试题 💯](sql/common/sql-interview.md)
5+
### [关系型数据库面试题 💯](sql-interview.md)
66

7-
### [SQL Cheat Sheet](sql/common/sql-cheat-sheet.md)
7+
### [SQL Cheat Sheet](sql-cheat-sheet.md)
88

99
![img](http://dunwu.test.upcdn.net/snap/20200115160512.png)
1010

docs/sql/common/sql-advanced.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 高级 SQL
2+
3+
> 不同于 [SQL Cheat Sheet](sql-cheat-sheet.md) 中的一般语法,本文主要整理收集一些高级但是很有用的 SQL
4+
5+
## 数据库
6+
7+
##
8+
9+
查看表的基本信息
10+
11+
```sql
12+
SELECT * FROM information_schema.tables
13+
WHERE table_schema = 'test' AND table_name = 'user';
14+
```
15+
16+
查看表的列信息
17+
18+
```sql
19+
SELECT * FROM information_schema.columns
20+
WHERE table_schema = 'test' AND table_name = 'user';
21+
```
22+
23+
## 参考资料
24+
25+
- [《SQL 必知必会》](https://item.jd.com/11232698.html)

docs/sql/common/sql-cheat-sheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SQL Cheat Sheet
22

3-
> 本文针对关系型数据库的一般语法。限于篇幅,本文侧重说明用法,不会展开讲解特性、原理。
3+
> 本文针对关系型数据库的基本语法。限于篇幅,本文侧重说明用法,不会展开讲解特性、原理。
44
>
5-
> 本文语法主要针对 Mysql。
5+
> 本文语法主要针对 Mysql,但大部分的语法对其他关系型数据库也适用
66
77
![img](http://dunwu.test.upcdn.net/snap/20200115160512.png)
88

0 commit comments

Comments
 (0)