• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

How can Trigger be used to keep track of a field?

If I have a page, with a textbox, a checkbox and a submit. Based on the checkbox, I update a field in the database and trigger does whatever. But also, if there's text in that textbox,I want to keep track of what the user entered. How do I do that? insert that textbox value into another table and keep track of it?
0
Camillia
Asked:
Camillia
  • 2
1 Solution
 
EmesCommented:
Do you want a full history or just the last value?

if you want a full history then you will need a separate table. If you just need the last value i would append the the table a value to keep track of that field.

 
0
 
CamilliaAuthor Commented:
>>If you just need the last value i would append the the table a value to keep track of that field.

append it where? you mean just create a new column for the table??
0
 
EmesCommented:
Yes

Id  CurrentValue  PrevousValue
1             10              5
2              8               NULL
3             13              12


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now