postgresql函数和sybase函数的区别

2025-03-11 11:13:22
推荐回答(1个)
回答1:

’abc’ LIKE ’abc’ -- 返回true
’abc’ LIKE ’a%’ -- 返回true
to_char() 把时间戳转换成字符串
语法
to_char(timestamp, text)
示例
to_char(create_date, 'YYYY/MM/DD')
to_char(create_date, ’HH12:MI:SS’)
to_date() 把字符串转换成日期
语法
to_date(text, text)