CODE SQLPLUS Flashcards

1
Q

Generieren und fügen 2 Mio Users in Tabelle hinzu!

A

BEGIN
FOR i IN 1..2000000
LOOP
INSERT INTO HR.TAB3(USER_ID, USER_NAME) VALUES(i, ‘user’);
IF MOD(i, 10000) = 0 THEN
COMMIT;
END IF;
END LOOP;
COMMIT;
END;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly