I renamed field in table. When I do desc on this table it shows new name, However when I do SELECT newfieldname from mytable I get following error: ORA-00904.
Does this query show your column name?
Do you have any miscellaneous characters around the new column name?
Post the results of this query.
Code:
SELECT table_name, '|' || column_name || '|', data_type
FROM all_tab_columns
WHERE owner = 'SCHEMAOWNER' AND
table_name = 'YOURTABLE_NAME'
ORDER BY column_id;
Last edited by gandolf989; 10-07-2004 at 10:24 AM.
code:--------------------------------------------------------------------------------
SELECT table_name, '|' || column_name || '|', data_type
FROM all_tab_columns
WHERE owner = 'SCHEMAOWNER' AND
table_name = 'YOURTABLE_NAME'
ORDER BY column_id;
Cause: The column name entered is either missing or invalid.
Action: Enter a valid column name. A valid column name must begin with a letter, be less than or equal to 30 characters, and consist of only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in double quotation marks. It may not be a reserved word.
Bookmarks