Answer the question
In order to leave comments, you need to log in
Why doesn't LENGTH accept a new column alias as an argument in SQL?
There is a table in the database:
id first_name
------- ----------
3001 Пётр
3002 Василий
3003 Олег
3004 Дмитрий
3005 Евгений
select 'Name is ' || first_name as new_name, length('Name is ' || first_name) from table;
Name is Пётр | 12
Name is Василий | 15
Name is Олег | 12
...
select 'Name is ' || first_name as new_name, length(new_name) from table;
"NEW_NAME": недопустимый идентификатор
"%s: invalid identifier"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question