Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using insert command in NVL function

1001507May 10 2013 — edited May 10 2013
How can we use insert command in a NVL function

exapmle : INSERT INTO employee
VALUES ( (NVL ( (SELECT emp_id
FROM employee
WHERE emp_name LIKE 'Test'),
(insert into employee values((select max(emp_id)+1 from employee),'Test')))));


I mean i will check for the record to exist in the table and if not exist i will add it to the table.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2013
Added on May 10 2013
3 comments
3,273 views