摘要: 一、常用日期函数 1. unix_timestamp:返回当前或指定时间的时间戳 select unix_timestamp();select unix_timestamp("2020-10-28",'yyyy-MM-dd'); 2. from_unixtime:将时间戳转为日期格式select f 阅读全文
posted @ 2022-08-14 16:21 Avery_rainys 阅读(70) 评论(0) 推荐(0)
摘要: 行转列 ① CONCAT(string A/col, string B/col…):返回输入字符串连接后的结果,支持任意个输入字符串; ② CONCAT_WS(separator, str1, str2,...): ·它是一个特殊形式的 CONCAT()。第一个参数剩余参数间的分隔符。 ·分隔符可以 阅读全文
posted @ 2022-08-14 16:16 Avery_rainys 阅读(226) 评论(0) 推荐(0)