Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
能够计算 UTC 时间戳作为列的默认值是大多数流行数据库解决方案的一个方便的功能。Google Cloud Spanner 是否支持此功能?如果不是,这是一个可能的路线图项目吗?
无论类型如何,Cloud Spanner 实际上都不允许指定任何默认值。这意味着隐式默认值为 Null 或 Error,具体取决于是否指定了列NOT NULL
NOT NULL
Cloud Spanner 在内部存储提交行的“时间戳”,但它不会直接公开它。它也不像默认值(设置一次),所以不幸的是,您的问题的答案目前是否定的。
绝对是团队需要考虑的事情。