File tree Expand file tree Collapse file tree 5 files changed +147
-77
lines changed Expand file tree Collapse file tree 5 files changed +147
-77
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 2
2
3
3
## 📖 内容
4
4
5
- ### [ 关系型数据库面试题 💯] ( sql/common/sql -interview.md )
5
+ ### [ 关系型数据库面试题 💯] ( sql-interview.md )
6
6
7
- ### [ SQL Cheat Sheet] ( sql/common/sql -cheat-sheet.md )
7
+ ### [ SQL Cheat Sheet] ( sql-cheat-sheet.md )
8
8
9
9
![ img] ( http://dunwu.test.upcdn.net/snap/20200115160512.png )
10
10
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change 1
1
# SQL Cheat Sheet
2
2
3
- > 本文针对关系型数据库的一般语法 。限于篇幅,本文侧重说明用法,不会展开讲解特性、原理。
3
+ > 本文针对关系型数据库的基本语法 。限于篇幅,本文侧重说明用法,不会展开讲解特性、原理。
4
4
>
5
- > 本文语法主要针对 Mysql。
5
+ > 本文语法主要针对 Mysql,但大部分的语法对其他关系型数据库也适用 。
6
6
7
7
![ img] ( http://dunwu.test.upcdn.net/snap/20200115160512.png )
8
8
You can’t perform that action at this time.
0 commit comments