Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3318658
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:43:56+00:00 2026-05-17T22:43:56+00:00

The following is my tables table1 ========= id col1 col2 ===================================== 1 firstrow firstrow2

  • 0

The following is my tables

table1
=========
id          col1            col2
=====================================
1          firstrow          firstrow2
2          secrow            secrow2

table2
===========
id         orignalvalue          updatedvalue
===============================================
2           secrow2               Secondrow2

i need a trigger when my table1 values are updated,a row to be created in the table2 with the id,originalvalue and the updatevalue in it…This is just like an LOG table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:43:57+00:00Added an answer on May 17, 2026 at 10:43 pm

    You’re basically looking at an AFTER UPDATE trigger to insert the OLD and NEW values into table2 but without knowing which DB you’re using, the syntax may differ or it might not even be possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following tables : Table1 ( Col1 : varchar2, Col2 : number,
I have a table with the following Table1 col1 col2 ------------ 1 A 2
I am trying to accomplish the following: SELECT col1, col2 FROM table1 UNION SELECT
In the following query SELECT col1,col2 FROM table1 WHERE col3='value1' AND col4='value2' If I
Given the following table in SQL Server 2005: ID Col1 Col2 Col3 -- ----
Assume I have the following style table, col1 col2 and col3 have same value
I have a table with the following structure id(int) | col1(int) | col2(int) |
Given a table (id, col1, col2), does it make sense to create the following
I have the following two tables: Table1 ---------- ID Name 1 A 2 B
I have two tables with the following columns: table1: id, agent_name, ticket_id, category, date_logged

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.