The classpath is not set properly. There might be some classes in your classpath that shouldn't be there. Check the Java Option field (JDeveloper: Project Settings -> Configurations -> Development -> Runner -> Java Options) if there is any "-classpath" option specified there. Leave...
Here is the working solution:
CREATE TRIGGER archive
AFTER INSERT ON order
REFERENCING NEW AS new
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
DECLARE v_max INTEGER;
SET v_max = (SELECT COUNT(*)FROM order WHERE cno = new.cno);
IF v_max = 50 THEN
INSERT INTO order_archive (oa_cno, oa_bno, oa_when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.