How to get newly entered row in a table, by using trigger in SqlServer-2000 or in Oracle

Showing Answers 1 - 6 of 6 Answers

yogesh

  • Jan 18th, 2006
 

i think u can query for max(rowid).

  Was this answer useful?  Yes

Anu

  • Feb 6th, 2006
 

You can get the newly entered row in oracle using this query.. I dont know using triggers.Let me know if someone gets it. select sno,sname from dup_rows where rowid = (select max(rowid) from dup_rows);

  Was this answer useful?  Yes

Anu

  • Feb 6th, 2006
 

You can get the newly entered row in oracle using this query.. I dont know using triggers.Let me know if someone gets it. select sno,sname from dup_rows where rowid = (select max(rowid) from dup_rows);

  Was this answer useful?  Yes

sudeep_srivastava

  • Jun 19th, 2007
 

In Trigger there is a special Table Called INSERTD. it takes the value from transation log.

In the After Insert Trigger....

SELECT Id,Name FROM INSERTED

you can catch these values in a variable.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions