user2998243
user2998243

Reputation: 181

Rename column with hyphen

I would like to rename, in a Oracle database some column who have "-". But, I have an error. I execute :

alter table thisTable rename column "dcsplc-a" to UPPER(dcsplc-a);

I have this error :

Error: ORA-23290: This operation may not be combined with any other operation

So, I know "-" isn't a good idea, but I cannot change. I want just uppercase like "DCSPLC-A".

Do you have a solution ?

Thanks

Upvotes: 0

Views: 2193

Answers (1)

David דודו Markovitz
David דודו Markovitz

Reputation: 44931

The error is due to the UPPER function.
You have to use hard coded name (and also qualify a name with special characters)

alter table thisTable rename column "dcsplc-a" to "DCSPLC-A";

Upvotes: 1

Related Questions