Skip to content

AL01 — Table alias should be introduced with AS

Group: Aliasing · Auto-fixable: yes

An implicit table alias (users u) is easy to misread as two separate tables. Spelling it users AS u is unambiguous. Inserted automatically.

bad: SELECT u.id FROM users u
good: SELECT u.id FROM users AS u

Disable this rule in banshee.toml:

[lint]
exclude = ["AL01"]

Or silence one line with -- noqa: AL01. See Linting.