Release: 2.1.0b2 | Release Date: April 16, 2026

SQLAlchemy 2.1 Documentation

SQLAlchemy 2.1 Documentation

Home

SQLAlchemy Core

  • SQL Statements and Expressions API
    • Column Elements and Expressions
    • Operator Reference
    • SELECT and Related Constructs¶
      • Selectable Foundational Constructors
      • Selectable Modifier Constructors
      • Selectable Class Documentation
      • Label Style Constants
    • Insert, Updates, Deletes
    • SQL and Generic Functions
    • Custom SQL Constructs and Compilation Extension
    • Expression Serializer Extension
    • SQL Expression Language Foundational Constructs
    • Visitor and Traversal Utilities
  • Schema Definition Language
  • SQL Datatype Objects
  • Engine and Connection Use
  • Core API Basics

Home

  • Previous: Operator Reference
  • Next: Insert, Updates, Deletes
  • Up: Home
    • SQLAlchemy Core
      • SQL Statements and Expressions API
  • On this page:
    • SELECT and Related Constructs
      • Selectable Foundational Constructors
      • Selectable Modifier Constructors
      • Selectable Class Documentation
      • Label Style Constants

SELECT and Related Constructs¶

The term “selectable” refers to any object that represents database rows. In SQLAlchemy, these objects descend from Selectable, the most prominent being Select, which represents a SQL SELECT statement. A subset of Selectable is FromClause, which represents objects that can be within the FROM clause of a Select statement. A distinguishing feature of FromClause is the FromClause.c attribute, which is a namespace of all the columns contained within the FROM clause (these elements are themselves ColumnElement subclasses).

Selectable Foundational Constructors¶

Top level “FROM clause” and “SELECT” constructors.

Selectable Modifier Constructors¶

Functions listed here are more commonly available as methods from FromClause and Selectable elements, for example, the alias() function is usually invoked via the FromClause.alias() method.

Selectable Class Documentation¶

The classes here are generated using the constructors listed at Selectable Foundational Constructors and Selectable Modifier Constructors.

Label Style Constants¶

Constants used with the GenerativeSelect.set_label_style() method.

See also

Select.set_label_style()

Select.get_label_style()

Previous: Operator Reference Next: Insert, Updates, Deletes
© Copyright 2007-2026, the SQLAlchemy authors and contributors.

flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.

Created using Sphinx 9.1.0. Documentation last generated: Mon 27 Apr 2026 04:59:44 PM +0330