2011年7月23日

SQL Server timestamp 的使用

摘要: 两种方法将二进制的timestamp进行转化select convert(bigint,ts) ts from table_namecreate table #tb(id int,dt timestamp) insert #tb(id) select 1 insert #tb(id) select 2 insert #tb(id) select 3 select *,ddate=cast(dt as datetime) from #tb id dt ddate ----------- ------------------ ----------------------- 1 0x00000000 阅读全文

posted @ 2011-07-23 23:58 Mr Lin 阅读(396) 评论(0) 推荐(0) 编辑

导航