[SQL][MySQL] DML ( Data Manipulation Language ) - SELECT

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] ...
}

 

 

반응형