-
problem on checking date in trriger of before insert whether it's today date
i make a table with a colm of date data type and also make a before insert
trriger to check whether the entered date is sysdate or not, if not then
raise a error, but when i insert a row with sysdate it raise a error with
the message no data found. my trriger is that
create or replace trigger tr2_sysdate
before insert on kavi
declare
dat exception;
begin
if :new.a <> sysdate then
raise dat;
end if;
exception
when dat then
raise_application_error(-20001,'enter date is not systemdate');
end;
/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks