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 is synonyms?
What is data types in sql?
Write a sql query to find the names of employees that begin with ‘a’?
Can we insert data in view?
What is the difference between partition and index?
what is blob? : Sql dba
What is the current version of postgresql?
what is the command line end user interface - mysql? : Sql dba
Is big data nosql?
Define concurrency control. : Transact sql
What is rank dense_rank and partition in sql?
what are the different functions in sorting an array? : Sql dba
what are the different type of normalization? : Sql dba
Can ddl statements be used in pl/sql?
who introduced sql?