Hi,
My requirement is to insert records from TARGET table to SAMPLE table with current time stamp value.
I created trigger and tried using insert into select but it says feature is not supported.What i want to do here is once user inserts any record in TARGET table, it should insert the same record in SAMPLE table also in column 'B' with current timestamp value in column 'Time_Stamp'.
I tried the same using procedure,but getting error.
insert into "SAMPLE" values ( current_timestamp,"B")
select "A" from "TARGET" ( giving error)
But I don't think creating procedure is a good idea here, since we need to do it manually so better we need to do with the help of a trigger
but I am not getting how to do the same.
Any inputs please?
I have tables as below:
TARGET:
A
1
2
3
4
5
SAMPLE
Time_stamp B
Br
Sumeet