I've recently switched from using SQL Server to Oracle. There's some Oracle specific functions that are confusing me. The documentation at https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/returninginto_clause.htm didn't make much sense to me.
If I do something like:
INSERT INTO my_table (val2, val3, val4)
VALUES (2, 3, 4)
RETURNING val1 INTO 1
where the table schema is:
CREATE TABLE my_table (
val1 NUMBER NOT NULL,
val2 NUMBER,
val3 NUMBER,
val4 NUMBER,
CONSTRAINT pk_val1 PRIMARY KEY (val1)
)
what does it do? what does it return?
Insert Into
in sql server... – Infarct