1

I have a column UPDATE_TIME with an expression

 TIMESTAMP NOT NULL GENERATED ALWAYS FOR EACH ROW ON UPDATE AS ROW CHANGE TIMESTAMP

How to remove the Generated always for timestamps?

I tried

  db2 "alter table xxxx alter column UPDATE_TIME drop expression" 

1 Answer 1

3

This is not valid syntax. You need to use,

 alter table xxxx alter column update_time drop generated

See the documentation on alter table for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.