mysql如何从字符串中获取时间
mysql如何从字符串中获得时间
mysql从字符串中获得时间的案例:
addtime='2020⑴1⑴7 15:47:50'substr(addtime,1,10) as 创建日期
SUBSTR(string, string charcter, number of charcters)
参数含义:
string:为字符列或字符串表达式
string charcter:子串的起始位置
number of charcters:返回字符的个数
文章来源:丸子建站
文章标题:mysql如何从字符串中获取时间
https://www.wanzijz.com/view/4662.html