当前位置:网站首页>sqlServer2008中float类型数据与datetime类型数据互转
sqlServer2008中float类型数据与datetime类型数据互转
2022-06-25 22:05:00 【langmeng110】
话不多说,直接上代码:
--datetime转换为float
select convert(float,current_timestamp); //43963.672012731484
--float转换为datetime
select convert(datetime,43963.670775887345); //2020-05-14 16:05:55.033
边栏推荐
- Kotlin空指针Bug
- mongodb
- String object (constant) pool
- 1.8 billion pixel Mars panorama Ultra HD released by NASA, very shocking
- 4个要点,助力产品管好项目
- Leetcode (435) - no overlapping interval
- (serial port Lora module) centrida rf-al42uh private protocol test at instruction test communication process
- php性能优化
- Analysis and comprehensive summary of full type equivalent judgment in go
- C2. k-LCM (hard version)-Codeforces Round #708 (Div. 2)
猜你喜欢

Hibernate entity class curd, transaction operation summary

mysql版本升级+数据迁移

Once beego failed to find bee after passing the go get command Exe's pit

一文讲透研发效能!您关心的问题都在

28 rounds of interviews with 10 companies in two and a half years (including byte, pinduoduo, meituan, Didi...)

idea 查看单元测试覆盖率

Kotlin空指针Bug

C# IO Stream 流(一)基础概念_基本定义

如何设计产品的roadmap?

为什么Integer的比较最好使用equals
随机推荐
C2. k-LCM (hard version)-Codeforces Round #708 (Div. 2)
QT custom implemented calendar control
Kylin
Episode 3: thread synchronization using thread lock
先序线索二叉树
Qt Utf8 与 Unicode 编码的互相转换, Unicode编码输出为格式为 &#xXXXX
发送邮件工具类
[Axi] interpretation of Axi protocol disorder mechanism
qtcreator 格式化代码
B. Box Fitting-CodeCraft-21 and Codeforces Round #711 (Div. 2)
期末复习【机器学习】
Uniapp -- the use of document collation and push of unipush
CSDN添加页内跳转和页外指定段落跳转
如何设计产品的roadmap?
Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!
达梦数据库修改字段信息采坑记
后序线索二叉树
util. Collection and encapsulation of JS tool functions
mysql
DPVS-FullNAT模式部署篇