tags:

views:

59

answers:

2

hi dears,

i have a query like :

SELECT column as averyveryveryverylongalias (more than 30 characters) FROM Table_name

it returns the error ORA-00972 identifier is too long , is there any tip to make it work without making the alias shorter?

Thanks

+5  A: 

No, Oracle identifiers are not allowed to exceed 30 characters in length. See the Oracle SQL Language Reference.

Tony Andrews
out of curiosity, does anyone know where this limitation comes from, and how come the limit has never been relaxed ? It really strikes me that none of the million-dollar paying customers of Oracle *ever* requested such a feature (now don't get me wrong, I am pretty sure there are some deep technical reason, but still..)
phtrivier
Okay, I could have asked SO : http://stackoverflow.com/questions/1378133/why-are-oracle-table-column-index-names-limited-to-30-characters
phtrivier
A: 

If there would have been a way, this guy would have known so and proposed a solution.

There is no way to make it longer.

Will Marcouiller