MySQL 函数
字符串替换函数REPLACE(field1, 'abc', 'def')
截取字符串函数
SUBSTRING(str1, start_index, length)
SELECT 增加自增序列
1 | SET @counter=0; |
时间戳转标准时间函数
FROM_UNIXTIME(unix_timestamp ,'%Y-%m-%d %H:%i:%S')
标准时间转时间戳函数
UNIX_TIMESTAMP(date)
当前标准时间函数
NOW()
当前时间戳函数
UNIX_TIMESTAMP(NOW())
Hive 函数
时间戳转标准时间函数
FROM_UNIXTIME(unix_timestamp ,'yyyyMMdd')