Implicit aliasing of column not allowed. Use explicit
AS
clause14 a+(b*c), (a+b)*c -- ditto
15
16
17INSERT INTO mnop (m, n) SELECT i, (1e9 + i/2e4)::float FROM generate_series(1, 2e4) AS i(i) RETURNING NOTHING18
19CREATE TABLE midprimarykeyswapcleanup AS SELECT * FROM generate_series(1,3) AS a;
20-- This schema change is used to enable the primary key swap. The backup is not taken during this schema change.
Implicit aliasing of column not allowed. Use explicit
AS
clause1select sum(a) over w, avg(b) over (partition by c order by d rows e preceding), min(f) over (order by g range between unbounded preceding and h following exclude ties) from t window w as (partition by i groups between j preceding and current row exclude no others)
Description
Implicit aliasing of column not allowed. Use explicit AS
clause.
Example
You can set column aliases in SQL typing the identifier right after the column name.
SELECT column_one c1
FROM table;
(or) you can use the keyword AS to indicate the alias.
SELECT column_one AS c1
FROM table;
AS
is a more explicit way of mentioning the alias.
Ref: https://stackoverflow.com/questions/4164653/whats-the-purpose-of-sql-keyword-as