Thanks, Steve,
That gets me part way there. However, I can't discern any difference between saying generated="insert" and generated="always". The only effect of using these clauses appears to be that the column is omitted from the insert and update statements. When using generated="always", I would expect it to update using the DEFAULT value. This will update the value to the current timestamp if that was specified as the default value. Otherwise, the timestamp will only be generated on insert. A trigger would be needed to set it on update. While this is not impossible, it seems needless extra trouble if the generated="always" took care of it.
Regards,
Jules
|