Skip to Main Content

SQL & PL/SQL

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Why no IS_DATE or IS_NUMBER functions?

511898Sep 5 2009 — edited Sep 7 2009
Why aren't there functions like these?

IS_DATE(string,format)
IS_NUMBER(string,optional_precision,optional_scale)
etc.

I know you can write them yourself, but that does very little good to the average user who might want to just do a query without having to write, test, debug, and deploy a pl/sql function. And yes, I can use REGEXP_LIKE and huge honking case statements to achieve the same functionality, but it doesn't make for very clean SQL.

Am I missing something? Are these functions in a package somewhere? This is freaking me out. It seems counter-intuitive that such simple data validation functions wouldn't be built in to an enterprise-class RDBMS.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 5 2009
Added on Sep 5 2009
8 comments
2,183 views