Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Home
Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients

 

Free Oracle Tips


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Validation Methods

Validations are written to return a TRUE or FALSE value.  A return value of TRUE means the validation is successful.  A return value of FALSE means there is as an error.

SQL

  • Exists:   Allows the creation of a SQL select statement that checks for the existence of data in the database.  The validation will return TRUE if at least one row is returned from the query.

Example:

select 1 from inventory_items
where  item_id = :P100_ITEM_ID
and    qty_available >= :P100_QTY_ORDERED;

  • NOT Exists:   This is a good validation to use to prevent the insert of a record that already exists.  If a row is found, the validation returns a false value indicating an error.  The syntax is the same as for the Exists example above.

  • SQL Expression:   Evaluates a SQL or PL/SQL expression and returns a TRUE or FALSE value of the expression.  This type of validation is valuable, for example, checking that a birth date is not some date in the future.  It is also valuable for comparing numeric values since page items are displayed in alphanumeric format.

Example:

 :P100_BIRTH_DATE <= SYSDATE

Example:

 TO_NUMBER(:P100_AMOUNT_OWED)
         = TO_NUMBER(:P100_AMOUNT_PAID)


The above book excerpt is from:

Easy HTML-DB Oracle Application Express

Create Dynamic Web Pages with OAE

ISBN 0-9761573-1-4   

Michael Cunningham & Kent Crotty

http://www.rampant-books.com/book_2005_2_html_db.htm  



Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
Oracle performance Tuning 10g reference poster
 
Oracle training in Linux commands
 
Oracle training Excel
 
 
 
 

 

email BC:


Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.