I insert 1 rows successfully, but I want to insert rows using loop. The purpose is want to insert into table2 values of table1 that is not existed. My query like that:
FOR cl1 IN (SELECT tb1.cl1 FROM table1 tb1 WHERE tb1.cl1 NOT IN(SELECT tb2.cl1 FROM table2 tb2))
LOOP
INSERT INTO table2 VALUES (cl1,'123456',sysdate);
END LOOP