Clone wiki

sqlalchemy / UsageRecipes / SelectAsLabel

A quick note because it took me a while to find the way to do this. (Ideally this should get more prominent placement in the docs - it's used in some of the examples, but never fully described AFAICT).

In order to do:

SELECT foo AS bar FROM tbl;

you can do: