Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Data validation

Data validation

From: Fredrik Bertilsson <fredrik_bertilsson_at_passagen.se>
Date: 13 Jan 2004 05:23:14 -0800
Message-ID: <31f7e57d.0401130523.4d984119@posting.google.com>


I want to have a data validation rule that defines a pattern (in regular expression if possible) for phone numbers. Only phone numbers that matches this pattern should be possible to insert into the database.

The application that reads and updates this column should be able to work with different database vendors. So the SQL statements for select, update and insert must be identical for different vendors.

Are there any way of doing this (that works with most of the popular databases), without using triggers?

Regards,
Fredrik Received on Tue Jan 13 2004 - 07:23:14 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US