Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据库,其中有一列将日期列为 MONYY ex。FEB05、JUN12 等。我想从日期>= 今天的行中获取数据。我尝试使用 to_date 如下
select t.date, t.data, to_date(t.date, 'monyy') from table t where to_date(t.date,'monyy') >='8/1/2012'
但是我收到错误消息说 FROM 关键字不在预期的位置。
在编写此查询时需要帮助。
table是保留字,而不是有效的表名。交换table您的表的实际名称。
table
编辑: 我试过了,如果我将最终日期更改为:
to_date('8/1/2012', 'mm/dd/yyyy')