Is there an automatic modification time stamp type for Oracle columns?

前端 未结 6 2133
臣服心动
臣服心动 2020-12-15 05:46

Is there a way to create a timestamp column in Oracle that automatically stores a timestamp of when the record has changed ?

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 06:11

    Another way to deal with this is by turning on fine-grained audit. The individual rows won't have a timestamp, but you'll have a record of all changes. Overkill in most situations, though -- I usually just use triggers.

    If you are OK with nearest .01 seconds, you can use date format and assign sysdate. If you need more detail, use the timestamp.

提交回复
热议问题