Insert value passed in by parameter to a table
SQL> CREATE TABLE myTable2 (
2 a INTEGER,
3 b CHAR(10)
4 );
Table created.
SQL>
SQL> CREATE or replace PROCEDURE addtuple1(i IN NUMBER) AS
2 BEGIN
3 INSERT INTO myTable2 VALUES(i, 'xxx');
4 END addtuple1;
5 /
Procedure created.
SQL>
SQL> drop table myTable2;
Table dropped.
SQL>
Related examples in the same category