[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Make it NULL by default

For some business reason i have to either avoid values updating a column in a table. I cannot controt the data import, all i am trying to do is make that column to null whatever value it has.. the column should always have null, so either i can avoid the incoming fileds or change it after feed.. so is there any way to do that?
0
parpaa
Asked:
parpaa
  • 3
1 Solution
 
Philip PinnellCommented:
You could have a trigger on update that changes the value back to null whenever an attempted update takes place.
0
 
parpaaAuthor Commented:
is there anything else besides this?? this sounds good...
0
 
Philip PinnellCommented:
I can't think of another sure way
0
 
Philip PinnellCommented:
Thanks
0
 
aangrishCommented:
As you don't have control over the import, a before insert or update trigger is the way to go. Depending on your database, ensure it fires only on an update to that particular field.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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