摘要: 复习: 查询:select 列名 from 表 去重:distinct 排序:order by 列1 列2 排序方法:asc desc. 限定返回行数:limit n limit n,m 过滤:where 操作符:and or in not between and ,is null ,is not 阅读全文
posted @ 2019-06-05 00:29 WiltChamberlain 阅读(262) 评论(0) 推荐(0) 编辑
摘要: -数据库表中一般包含大量的数据,很少需要查询表中的所有行,通常只会根据特定的需要提取表中的一部分数据。这个时候需要制定查询条件,及过滤条件。 -在select语句中,数据库根据where字句中指定的查询条件进行过滤。where字句位于表名之后。 -格式:select列名 from 表名 where 阅读全文
posted @ 2019-06-05 00:06 WiltChamberlain 阅读(677) 评论(0) 推荐(0) 编辑