Use the PL/SQL RETURNING
clause:
insert into mytable (...) values (...)
returning id into v_id;
More Related Contents:
- ANYONE CAN TELL ME THAT WHY THIS CODE IS GIVING ME AN ERROR OF TABLE OT CLUSTER KEY WORD IS MISSING? [closed]
- How are dates stored in Oracle?
- How do I escape a reserved word in Oracle?
- How to put more than 1000 values into an Oracle IN clause [duplicate]
- ORA-30926: unable to get a stable set of rows in the source tables
- ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
- Fetch Oracle table type from stored procedure using JDBC
- TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
- “Safe” TO_NUMBER()
- When or Why to use a “SET DEFINE OFF” in Oracle Database
- error: ORA-65096: invalid common user or role name in oracle
- Oracle insert if not exists statement
- Error : ORA-01704: string literal too long
- Oracle client ORA-12541: TNS:no listener [closed]
- Does Oracle have an equivalent of SQL Server’s table variables?
- Create an Excel Spreadsheet from a Oracle Database
- How do I turn off Oracle password expiration?
- ORACLE IIF Statement
- Table-Valued Functions in ORACLE 11g ? ( parameterized views )
- Oracle date difference to get number of years
- How to increase performance for bulk INSERTs to ODBC linked tables in Access?
- Oracle Age calculation from Date of birth and Today
- Trying to export a Oracle via PL/SQL gives a date of 0000-00-00
- Oracle: how to add minutes to a timestamp?
- How to drop multiple interval partitions based on date?
- ORA-01830: date format picture ends before converting entire input string / Select sum where date query
- How to call an Oracle function with a Ref Cursor as Out-parameter from C#?
- How to Register Pluggable Database(PDB) with new created LISTENER
- Grant Select on all Tables Owned By Specific User
- ORA-12704: character set mismatch