Sql将long int转换为日期时间 [英] Sql convert long int to date time
本文介绍了Sql将long int转换为日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将long int转换为日期时间
samplvalue 978312168将其转换为sql sercer中的日期时间
我尝试了什么:
请帮助解决这个问题
How to convert long int to date time
samplvalue 978312168 convert it date time in sql sercer
What I have tried:
Please Help to solve this problem
推荐答案
您可能希望将Epoch时间戳转换为sql server(人类可读)格式) - 堆栈溢出 [ ^ ]。
Select Convert(DATETIME, LEFT(978312168, 9))
这篇关于Sql将long int转换为日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文