You will need to create a trigger to update the column when there is an insert or update.
http://h2database.com/html/features.html#triggers On Wed, Jan 13, 2016 at 8:16 AM Narayana Reddy Y <[email protected]> wrote: > Hi H2 Members, > I have an h2 table with some rows. is there any > way to auto update a timestamp of a column in a row whenever there is a > modification or update in h2 ? > > like whenever someone modifies a column values of a row of that table, the > timestamp column of that row of a table should get auto updated. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
