如何在mysql中将datetime转换为bigint?

编程入门 行业动态 更新时间:2024-10-25 19:26:25
本文介绍了如何在mysql中将datetime转换为bigint?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

I have bigint(10) datatype column in table, for that have to store current datetime value. How can i convert the current datetime into bigint in mysql?.Please suggest your solution.

我尝试过: i在谷歌尝试过。但没有得到确切的解决方案

What I have tried: i tried in google. But didn't get exact solution

推荐答案

使用 FROM_UNIXTIME 函数 - MySQL :: MySQL 5.5参考手册:: 12。7日期和时间函数 - FROM_UNIXTIME [ ^ ] 另一种方式...... MySQL :: MySQL 5.5参考手册:: 12。7日期和时间函数UNIX_TIMESTAMP [ ^ ] Use the FROM_UNIXTIME function - MySQL :: MySQL 5.5 Reference Manual :: 12.7 Date and Time Functions - FROM_UNIXTIME[^] And the other way ... MySQL :: MySQL 5.5 Reference Manual :: 12.7 Date and Time Functions UNIX_TIMESTAMP[^]

更多推荐

如何在mysql中将datetime转换为bigint?

本文发布于:2023-11-04 12:13:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557911.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   中将   如何在   bigint   mysql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!