> For the complete documentation index, see [llms.txt](https://hezhiqiang-book.gitbook.io/mysql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang-book.gitbook.io/mysql/di-yi-zhang/index-1.md).

# 第二节 查询数据

在本教程中，您将学习

1. 如何使用 MySQL `SELECT` 语句从表或视图查询数据。
2. 如何使用 MySQL `DISTINCT`子句与`SELECT`语句一起组合来消除结果集中的重复行。
