i want to delete a record from employee table with a specific empid and before deleting , i want to copy all the equivalent data in employee table to another table, deletemprcd.
I tried using
but getting syntax error
Here i want to delete a record from employee table with a specific empid and before deleting , i want to copy all the equivalent data in employee table to another table, deletemprcd.
I also gave a try with
but the result is syntax error
What is wrong with the code
I tried using
Code:
SELECT * into deletemprcd from employee where empid =lclempno
Here i want to delete a record from employee table with a specific empid and before deleting , i want to copy all the equivalent data in employee table to another table, deletemprcd.
I also gave a try with
Code:
insert into dltemprcd select * from employee where empid =lclempno
What is wrong with the code