I am trying to add a temporary column to a table in order to fix leading and trailing spaces in the original column.
Original Column values (excluding speech marks):
" John Smith "
" Jay Morgan "
Temporary column values (excluding speech marks):
"John Smith"
"Jay Morgan"
SQL:
alter table persons
add t_full_name as default trim(full_name);
However, this does not work. Am I trying to do something impossible?