什么是时间戳/行版本(SQL Server)与 PostgreSQL 的等价物

编程入门 行业动态 更新时间:2024-10-25 16:17:02
本文介绍了什么是时间戳/行版本(SQL Server)与 PostgreSQL 的等价物的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人可以帮我找到与 PostgreSQL 等效的 Timestamp/Rowversion (SQL Server) 吗?

Could someone help me find the equivalent of Timestamp/Rowversion (SQL Server) with PostgreSQL?

我在 Mono (UNIX) 上使用 NHibernate.

I'm using NHibernate on Mono (UNIX).

我认为 Timestamp (PostgreSQL) 相当于 Datetime (SQL Server) - 这不是我想要的.

I think that Timestamp (PostgreSQL) is the equivalent of Datetime (SQL Server) - it's not what I'm looking for.

编辑 1:对于那些不知道什么是 SQL Server 中的时间戳/行版本的人:msdn.microsoft/en-us/library/ms182776.aspx(主要用于乐观并发)

Edit 1: For those who don't know what is a Timestamp/Rowversion in SQL Server: msdn.microsoft/en-us/library/ms182776.aspx (It is mostly used for optimistic concurrency)

推荐答案

如果我理解正确 rowversion 与 串行?如果没有 - 您必须使用触发器制作自己的触发器.

If I understand correctly rowversion is the same as serial? If not - you'd have to make your own with triggers.

更多推荐

什么是时间戳/行版本(SQL Server)与 PostgreSQL 的等价物

本文发布于:2023-10-27 03:36:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1532199.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:等价物   版本   时间   SQL   PostgreSQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!