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