Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Please can anyone help me with SQL in Oracle.
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
![]() |
![]() |