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 procedure explain with example?
What is database sql?
How do you optimize a stored procedure in sql?
Can we join two tables without common column?
How to select all records from the table?
Is join an inner join?
What is sql mysql pl sql oracle?
What are different types of keys?
What is the function that is used to transfer a pl/sql table log to a database table?
What is a primary key called that is made up of more than one field?
What is online transaction processing (oltp)?
Why use truncate instead of delete?
What are sql procedures?
How do I know if I have sql express or standard?
Where is sql database stored?