一、date型换int型 SELECT UNIX_TIMESTAMP(‘2017-9-22 13:54:45’)
二、int型转date型 SELECT FROM_UNIXTIME(1506059685)
Powered by: 博客园 Copyright © 2024 许爱琪 Powered by .NET 9.0 on Kubernetes