рдореБрдЦреНрдп рд╕рд╛рдордЧреНрд░реА рдкрд░ рдЬрд╛рдПрдБ

Keywords

MySQL keywords are predefined reserved words that form the syntax and logic of SQL commands. They control the behavior of the database and should not be used as identifiers.

Common Uses of MySQL Keywords

  1. SELECT: Fetches data.
  2. FROM: Specifies the table.
  3. WHERE: Filters results.
  4. AND/OR: Combines conditions.
  5. DISTINCT: Ensures unique results.

Examples

  1. SELECT and FROM Keywords

    Explanation: Fetches the name column from the employees table.

  2. WHERE Keyword

    Explanation: Filters orders where amount exceeds 100.

  3. AND/OR Keywords
    ┬а

    Explanation: Filters users older than 18 and currently active.

  4. DISTINCT Keyword

    Explanation: Retrieves unique department names from the employees table.

  5. LIKE Keyword

    Explanation: Fetches customers whose names start with "J."