[英]VB timestamp data type
I have timestamp
type data in sql-server . 我在sql-server中有
timestamp
类型的数据。 I wonder what should be related data type in vb ? 我想知道vb中应该如何关联数据类型?
Should it be string
, date
, Byte
or something else? 应该是
string
, date
, Byte
还是其他?
sql-server TIMESTAMP
is not a DATE
data type. sql-server
TIMESTAMP
不是DATE
数据类型。 It is used for row versioning and usually referred to as ROWVERSION
Documenation here 它用于行版本控制, 在此处通常称为
ROWVERSION
文档。
with that being said, sql-server treats it as binary. 话虽这么说, sql-server将其视为二进制文件。 So I'm not sure what value it will give you in application, but if you needed to convert it to VB the closest you can get is making it a string.
因此,我不确定在应用程序中它将为您提供什么值,但是如果您需要将其转换为VB,则可以得到的最接近的方法是将其设置为字符串。 VB data types documentation here
VB数据类型文档在这里
here is example of TIMESTAMP
from sql-server-2012 这是来自sql-server-2012的
TIMESTAMP
示例
0x000000002AB82831
0x000000002AB8280D
0x000000002AB827C4
0x000000002AB82710
0x000000002AB82758
0x000000002AB82759
0x000000002AB82832
0x000000002AB8277C
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.