728x90
● Row
▼ 조회
SELECT [ALL | DISTINCT] column_name [, column name ...] -- (5)
FROM table_name -- (1)
[WHERE where_condition] -- (2)
[GROUP BY col_name [, ...]] -- (3)
[HAVING where_condition] -- (4)
[ORDER BY col_name [, ...] [ASC | DESC]] -- (6)
[LIMIT row_count]; -- (7)
https://dev.mysql.com/doc/refman/8.0/en/select.html
더보기
더보기
더보기
더보기
SELECT
[ALL | DISTINCT | DISTINCTROW ]
[HIGH_PRIORITY]
[STRAIGHT_JOIN]
[SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
[SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]
select_expr [, select_expr] ...
[into_option]
[FROM table_references
[PARTITION partition_list]]
[WHERE where_condition]
[GROUP BY {col_name | expr | position}, ... [WITH ROLLUP]]
[HAVING where_condition]
[WINDOW window_name AS (window_spec)
[, window_name AS (window_spec)] ...]
[ORDER BY {col_name | expr | position}
[ASC | DESC], ... [WITH ROLLUP]]
[LIMIT {[offset,] row_count | row_count OFFSET offset}]
[into_option]
[FOR {UPDATE | SHARE}
[OF tbl_name [, tbl_name] ...]
[NOWAIT | SKIP LOCKED]
| LOCK IN SHARE MODE]
[into_option]
into_option: {
INTO OUTFILE 'file_name'
[CHARACTER SET charset_name]
export_options
| INTO DUMPFILE 'file_name'
| INTO var_name [, var_name] ...
}
반응형
'프로그래밍 언어 ( Programming Language ) > SQL' 카테고리의 다른 글
[SQL][MySQL] 데이터 타입 ( Data Type ) (0) | 2022.01.05 |
---|---|
[SQL] 제약 조건 ( Constraint ) (0) | 2022.01.04 |
[SQL][MySQL] DML ( Data Manipulation Language ) - INSERT, UPDATE, DELETE (0) | 2022.01.04 |
[SQL][MySQL] DDL ( Data Definition Language ) - CREATE, ALTER, DROP, RENAME (0) | 2022.01.04 |
[SQL] DB, DBMS, 관계형 데이터베이스 ( Relational Database ), SQL ( Structured Query Language ) (0) | 2022.01.04 |