ora-01747

“date” as a column name

我怕爱的太早我们不能终老 提交于 2019-12-06 18:46:29
问题 I have a table called calendars. One of its columns is named 'date' When I want to select the date column it gives error ORA-01747 namely invalid table.column. select date from calendars I guess this happens because 'date' is a reserved word for pl/sql. The problem is it's not even possible to change the column name : alter table calendars rename column date to date_d Result is: ORA-00904 error: invalid identifier. What do you advice? Thanks. 回答1: Have you tried select calendars.date from

“date” as a column name

蓝咒 提交于 2019-12-05 00:34:54
I have a table called calendars. One of its columns is named 'date' When I want to select the date column it gives error ORA-01747 namely invalid table.column. select date from calendars I guess this happens because 'date' is a reserved word for pl/sql. The problem is it's not even possible to change the column name : alter table calendars rename column date to date_d Result is: ORA-00904 error: invalid identifier. What do you advice? Thanks. FrustratedWithFormsDesigner Have you tried select calendars.date from calendars; /* or you could alias "calendars" if you don't want to type so much */