Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Mar 2003 @ 21:48:43 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Multiple updates to one table by several users
 
From:   Jim Downey

Andy,

We have a metadata table that is accessed by 5 macros :Find, Get, Insert, Update and Delete. The update macro does a coalesce(:parm,value) for each column that can be updated. This allows you call the macro like update(description='X'). If you omit the parameter for description, it coalesces to the current value. We have a generic id but the generic does not have update privilege on the table. You have to be logged on as a named user to update the table. This is because their is a column that defaults to the logged on user so we can capture who made a change. A trigger on the table does a before update statement to copy the old row to a history table before the update is made.

Jim



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 23 Jun 2019