Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.33 KB

retrieving-information-from-a-table.md

File metadata and controls

30 lines (17 loc) · 1.33 KB

4.3.4 Retrieving Information from a Table

4.3.4.1 Selecting All Data

4.3.4.2 Selecting Particular Rows

4.3.4.3 Selecting Particular Columns

4.3.4.4 Sorting Rows

4.3.4.5 Date Calculations

4.3.4.6 Working with NULL Values

4.3.4.7 Pattern Matching

4.3.4.8 Counting Rows

4.3.4.9 Using More Than one Table

SELECT语句用于从表中提取信息。语句的一般形式是:

SELECT what_to_select
FROM which_table
WHERE conditions_to_satisfy;

what_to_select指示您想要查看的内容。这可以一个或多个列的名称用“,”隔开,或*表示“所有列”。which_table指示要从中检索数据的表。 WHERE子句是可选的。如果存在,则conditions_to_satisfy指定行必须满足以满足检索要求的一个或多个条件。