Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
create or replace trigger filipe_email_check
before insert on filipe
for each row
begin
if instr(:new.email_id,'@') = 0 then
raise_application_error (-20000,'Missing "@" in email address, "'||
:new.email_id||'".');
end if;
if instr(:new.email_id,'.') = 0 then
raise_application_error (-20001,'Missing "." in email address, "'||
:new.email_id||'".');
end if;
end;
/
SQL> insert into filipe values ('firstname.lastname@domain.com');
1 row created.
SQL> insert into filipe values ('[URL unfurl="true"]www.tek-tips.com');[/URL]
insert into filipe values ('[URL unfurl="true"]www.tek-tips.com')[/URL]
*
ERROR at line 1:
ORA-20000: Missing "@" in email address, [URL unfurl="true"]www.tek-tips.com.[/URL]
ORA-06512: at "TEST.FILIPE_EMAIL_CHECK", line 3
ORA-04088: error during execution of trigger 'TEST.FILIPE_EMAIL_CHECK'
SQL> insert into filipe values ('email@domain');
insert into filipe values ('email@domain')
*
ERROR at line 1:
ORA-20001: Missing "." in email address, "email@domain".
ORA-06512: at "TEST.FILIPE_EMAIL_CHECK", line 7
ORA-04088: error during execution of trigger 'TEST.FILIPE_EMAIL_CHECK'