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"
Best Answer
This is not valid syntax. You need to use,
See the documentation on alter table for more details.