keyword
A word reserved by a language for its own syntax, such as if and return in Python or SELECT and WHERE in SQL.
In more detail
Because keywords have fixed meanings, they generally cannot be used as names for variables, tables or columns. SQL keywords are not case-sensitive and are written in capitals by convention, and a keyword can still name a table or column if it is put in double quotes. Built-in function names such as Python's print are not keywords, so they can be reused, though they should not be.
Related terms
- identifier — A name for a thing in code, such as a variable, function or module name.
- shadowing — Using a name that already means something, such as list or str, for your own variable, which hides the original in that part of the program.
- SQL — The standard language for defining, querying and changing data in a relational database.
- SQL statement — One complete SQL command, such as a SELECT, INSERT or CREATE TABLE, normally ending with a semicolon.
Taught in
- Literals, Identifiers And Keywords — Hands-on Python: Complete Video Course & Book
- The Print Function And String Literals — Hands-on Python: Complete Video Course & Book
- The Idle Editor And Running Programs — Hands-on Python: Complete Video Course & Book
- Dictionaries And String Formatting — Hands-on Python: Complete Video Course & Book
- The Print Function Keyword End — Hands-on Python: Complete Video Course & Book
- Data Types And What To Choose — PostgreSQL, Indexing & Relational Data Modeling
- The SELECT Statement And Projection — PostgreSQL, Indexing & Relational Data Modeling
- Interpreter, Compiler, And What Counts As Syntax — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Literals, Names And Four Number Bases — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Print, Input And The Casts Between — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Functions, Return Values And Recursion — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Parameters, Arguments And Scope — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Functions And Exceptions Sprint — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Classes, Objects And Two Stacks — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Methods And The self Parameter — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Lambdas, map() And filter() — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Closures: Functions That Remember — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep