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 46a21f5 commit bf7e925Copy full SHA for bf7e925
Doc/library/sqlite3.rst
@@ -2522,6 +2522,13 @@ Queries now return :class:`!Row` objects:
2522
>>> row["RADIUS"] # Column names are case-insensitive.
2523
6378
2524
2525
+.. note::
2526
+
2527
+ The ``FROM`` clause can be omitted in the ``SELECT`` statement, as in the
2528
+ above example. In such cases, SQLite returns a single row with columns
2529
+ defined by expressions, e.g. literals, with the given aliases
2530
+ ``expr AS alias``.
2531
2532
You can create a custom :attr:`~Cursor.row_factory`
2533
that returns each row as a :class:`dict`, with column names mapped to values:
2534
0 commit comments