the sql generated in django -
When I print the generated SQL in connection.queries:
I found some SQL like this :
SELECT (1) as `a` with` auth_user` where 'auth_user` .`id` = 2
What does this mean?
The alias (column name) for each entry in the table (or view) of 'A' Under '1', select 'auth_user' if condition auth_user.id in other words: a field with value '1' for all users with ID = 2
Comments
Post a Comment