Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating date column on import of file

Status
Not open for further replies.

larry12

Programmer
Jun 11, 2003
2
US
Hello all,
I have a database table with an insert trigger that inserts a delimited file. That is not what I am having trouble with though. The table has a column named Last_Updated_DateTime. I need this field to be updated each time the new file is imported (inserted) into the database. I am trying to do this with out using triggers. I am using db2 v7. On the stated column I try to use a getDate() function but that doesn't work. Can someone please help.

Thank you in advance!!!!!!!
 
Larry,
If you were to define the column as
DATE NOT NULL WITH DEFAULT
Would that do the trick?
Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top