I accidentally created a view with a concatenated column and did not alias the column on creation. I would like to fix the alias, but I'm not sure how to alter the view's column since the anonymous reference is not working. Is there a proper way to alter the views column name?
Query to create the view:
CREATE VIEW emp_full_name AS
SELECT first_name || ' ' || last_name
FROM employee
Querying the view:
?column?
John Doe
Jane Doe
....
Attempt to update column with new name:
ALTER VIEW emp_full_name RENAME ?column? TO full_name
Error:
LINE 1: ALTER VIEW emp_full_name RENAME ?column? TO full_name