create or replace trigger setsalzero before insert on t for each row begin if :new.sal<0 then :new.sal:=0; end if; end; /
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter