Skip to Content
author's profile photo Former Member
Former Member

field with default current_timestamp on update

Hi,

how can I update a timestamp during an update of a record?

example mysql: ON UPDATE CURRENT_TIMESTAMP but on sap Hana does not work.

Do you have a solution?

genereted as always with CURRENT_TIMESTAMP does not work

ALTER TABLE A_TEST  ADD (B TIMESTAMP GENERATED ALWAYS AS CURRENT_TIMESTAMP NOT NULL) ;

error:

SAP DBTech JDBC: [458]: unsupported function included: CURRENT_TIMESTAMP is not supported by generated column

I have already read these discussions:

http://scn.sap.com/thread/3389447

http://scn.sap.com/thread/3400259

Do you have other examples?

Thank You

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 07, 2015 at 11:16 PM
    -3

    What is your requirement here?

    Why does anyone has an interest in when a record has been changed on DB level?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.