MySQL
1、int时间转换为datetime时间
FROM_UNIXTIME(reg_time)
select reg_time, FROM_UNIXTIME(reg_time) from crm_user;
2、datetime时间转换为int时间
unix_timestamp(reg_time) select reg_time,unix_timestamp(reg_time) from crm_user;
文章标签 FROM_UNIXTIME mysql中int时间和datetime unix_timestamp 文章分类 MySQL 数据库
MySQL
1、int时间转换为datetime时间
FROM_UNIXTIME(reg_time)
select reg_time, FROM_UNIXTIME(reg_time) from crm_user;
2、datetime时间转换为int时间
unix_timestamp(reg_time) select reg_time,unix_timestamp(reg_time) from crm_user;
上一篇:mysql 字符集设置查看
下一篇:PHP显示全部错误
mysql中int时间和datetime时间的互相转换
Go int和string互相转换
mysql | 时间函数 | 时间戳 | 日期转时间戳
Golang怎么把string转int,int转string
qt关于rgb转int和int转rgb
cast('3.15926' as signed) cast(浮点型 as signed)
在苦于昨晚最后一个数制转换题,他的转换结果必...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M