Results 1 to 2 of 2

Thread: trigger

  1. #1
    Join Date
    Dec 2010

    Red face Unanswered: trigger

    i have two table:
    create table test1(
    num number(4),
    name varchar2(50));

    create table test2(
    num1 number(4),
    name1 varchar2(50));
    then i want to create a trigger before update on table test1 that i want to insert in table test2 the old values in table test1:
    for example
    insert into test1(1,'cocol');
    update test1
    set name='oracle' where num=1;
    so i want the trigger to insert 1 and cocol into the table test2.
    i know to that in sql server but in oracle i didn't find any example in the internet.
    thank you!

  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts