Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to use CURRENT_TIMESTAMP function in hdbtable

Anyone can hint me what is the correct syntax to set dedault value of a timestamp field to current time?

table.columns = [

  { name = "TIMESTAMP";  sqlType = TIMESTAMP;  nullable = false; defaultValue="current_timestamp()"; },

  { name = "USAGE";  sqlType = INTEGER;  nullable = false;  }

];

Thanks!

Yue

Tags:
Not what you were looking for? View more on this topic or Ask a question