If i insert record in table A and these record should update in table B by using Trigger.How to achieve this.
Answer Posted / shwetha
CREATE TABLE A1(ID NUMBER(2),NAMES VARCHAR2(30))
CREATE TABLE B1(ID NUMBER(2),NAMES VARCHAR2(30),STATUS VARCHAR2(10))
CREATE OR REPLACE TRIGGER A1B1
AFTER INSERT ON A1
FOR EACH ROW
BEGIN
INSERT INTO B1 VALUES(:NEW.ID, :NEW.NAMES,'Y');
END;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are inbuilt functions in sql?
What is mutating error in pl sql?
How do you delete a table?
What company owns postgresql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
what are rollup and cube in t-sql? : Transact sql
What are the two types of periodical indexes?
What is the use of desc in sql?
Does sap use sql?
What is $$ in sql?
What is bind variable in pl sql?
What is a unique key?
what is denormalization. : Sql dba
What are the types of queries in sql?
What are sql functions? Describe the different types of sql functions?