SQL Cheat Sheet
查找数据的查询
SELECT: 用于从数据库中选择数据
SELECT
*FROM
table_name;
DISTINCT: 用于过滤掉重复的值并返回指定列的行
SELECT DISTINCT
column_name;
WHERE: 用于过滤记录/行
...大约 4 分钟
SELECT
* FROM
table_name;SELECT DISTINCT
column_name;SELECT * FROM information_schema.tables
WHERE table_schema = 'test' AND table_name = 'user';