I used the following code to define a couple substitution variables
Select '&&my_name' "my name", '&&my_birthday' "date born" from dual;
I want to use the date_born variable in subsequent calls in the select statement but keep getting the ORA-00904 error. Below is the code I'm trying:
Select '&&my_name' "my name", '&&my_birthday' "date born", TO_DATE("date born") from dual;
or
Select '&&my_name' "my name", '&&my_birthday' "date born", TO_DATE(my_birthday) from dual;
Any ideas? I must be defining or calling the variable or column incorrectly.