We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e61e20 commit 6d86623Copy full SHA for 6d86623
Doc/library/sqlite3.rst
@@ -2311,6 +2311,13 @@ Queries now return :class:`!Row` objects:
2311
>>> row["RADIUS"] # Column names are case-insensitive.
2312
6378
2313
2314
+.. note::
2315
+
2316
+ The ``FROM`` clause can be omitted in the ``SELECT`` statement, as in the
2317
+ above example. In such cases, SQLite returns a single row with columns
2318
+ defined by expressions, e.g. literals, with the given aliases
2319
+ ``expr AS alias``.
2320
2321
You can create a custom :attr:`~Cursor.row_factory`
2322
that returns each row as a :class:`dict`, with column names mapped to values:
2323
0 commit comments