Download presentation
Presentation is loading. Please wait.
Published byCarina Hermansson Modified over 5 years ago
1
Dynamic SQL Example declare l_depnam varchar2(20) := 'testing'; l_loc varchar2(10) := 'Dubai'; begin execute immediate 'insert into dept values (:1,:2,:3)' using 50, l_depnam, l_loc; commit; end;
2
Dynamic SQL Example 2 declare l_depnam varchar2(20) := 'testing'; l_loc varchar2(10) := 'Dubai'; begin execute immediate 'insert into dept values (‘ || 50 || ‘, ‘ || l_depnam || ‘, ‘ || l_loc || ‘)‘ ; commit; end;
3
Static SQL Example declare l_depnam varchar2(20) := 'testing'; l_loc varchar2(10) := 'Dubai'; begin INSERT INTO dept VALUES (50, l_depnam, l_loc); commit; end;
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.