我有一个日期存储为VARCHAR(10)。我想选择一个时间戳铸造日期存储为varchar作为时间戳错误
SELECT CAST (date AS TIMESTAMP) AS created_timestamp
FROM dates;
我得到:
Incorrect parameters in the call to stored function 'CAST': SELECT CAST (date AS TIMESTAMP) AS created_timestamp FROM dates
我做了什么错?
(1)您使用了哪个数据库? (2)数据是什么样的? (3)你可以设置一个SQL小提琴吗? – 2014-09-29 11:35:45