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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Please can anyone help me with SQL in Oracle.

Re: Please can anyone help me with SQL in Oracle.

From: Phil Preen <[obiwan-preen_at_maytheforcebewithyou.co.uk>
Date: Tue, 1 Feb 2000 17:13:31 -0000
Message-ID: <949425405.199598@red.parallax.co.uk>

Ray <raytao_at_home.com> wrote in message news:38967653.11734066_at_news...
> In the table I have created using Oracle 8 and SQL statements, I need
> to be able to check if a field called 'BIRTHDATE' of type 'DATE' is
> no more than 15 years from today. How can I code for this because I
> cannot use the SYSDATE system variable with the CREATE TABLE
> statement? I need to somehow check if this constraint is true.
> Should it be coded on the column level or table level?

You can't do this with a simple table constraint. You will probably want to create some insert/update triggers.

Phil. Received on Tue Feb 01 2000 - 11:13:31 CST

Original text of this message

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