在SQL Server中与PostgreSQL类型“timestamp without time zone”等效的是什么?

12
在SQL Server中,postgresql的"timestamp without time zone"类型对应的是"datetime2"类型。使用DateTime类型是否可行取决于您需要处理的数据精度和时区信息是否重要。
1个回答

13

谢谢,但是这个类型适用于从PostgreSQL类型“timestamp without time zone”进行翻译吗? - user441365
@user441365,你需要使用datetime2(6)来匹配PostgreSQL的精度。 - Sergey Kalinichenko

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接