Using insert command in NVL function
1001507May 10 2013 — edited May 10 2013How 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.