SQL Language (MOSC)

MOSC Banner

A SELECT INTO query that fires an exception still returns data, is that common?

edited Jan 29, 2019 4:06AM in SQL Language (MOSC) 3 commentsAnswered

Hello I have the below query. The original query selected several columns so I removed them to make it easier to read. One of the SELECT columns calls the TO_CHAR function to format a phone number '1234567890' into '123-456-7890'. I had an scenario where that field contained non-numeric characters so it raised the exception and wrote it to an error log. I understood that when an exception occurs, the query would not return anything into the variables. However I noticed that the columns preceding the TO_CHAR in the SELECT statement did return values but the ones after the function did

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center