Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using "as" in DUAL statement produces error

583525Jun 20 2007 — edited Jun 20 2007
Hi,

SELECT 'abcefghijklm' AS str FROM DUAL WHERE str IN ('a','e','i','o','u');

This produces an error message - "STR": invalid identifier

Is such a comparison using a field name invented using "as" always invalid - is there no way around it?

What I am trying to do is to count the number of vowels in a sentence, there may be a better approach of course, if anyone knows one...?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2007
Added on Jun 20 2007
2 comments
253 views