基本格式
表结构:desc 表名
用户的表:select table_name from user_tables
查看用户:show user
查询所有列:*
查询指定列:
加别名:as
消除重复行:distinct
限定查询:where
(is null / is not null / and / or / not / between and / in / not in/ order by (desc /asc ) )
模糊查询:like/not like _ 表示一个字符, % 表示若干字符
数据库单表查询基本格式 表结构:desc 表名 用户的表:select table_name from user_tables 查看用户:show user 查询所有列:* 查询指定列: 加别名:as 消除重复行:distinct 限定查询:where (is null / is not null / and / or / not...