在我的where条件下,我需要检查特定日期列不等于特定日期。我该怎么做?
目前我已经写了
gsaTs.X_GSA_ARRIVE_ONSITE <> '1753/01/01'我收到以下错误
[Error] Execution (189: 49): ORA-01861: literal does not match format string发布于 2018-09-26 10:07:05
'1753/01/01'是一个字符串。如果X_GS_ARRIVE_ONSITE列是DATE数据类型,则应该提供格式掩码(带有TO_DATE函数),或者使用DATE文字。
gsats.x_gsa_arrive_onsite <> to_date('1753/01/01', 'yyyy/mm/dd')或
gsats.x_gsa_arrive_onsite <> date '1753-01-01'发布于 2018-09-26 10:05:46
尝试使用to_date()并指定匹配的格式字符串。
gsaTs.X_GSA_ARRIVE_ONSITE <> to_date('1753/01/01', 'YYYY/MM/DD')https://stackoverflow.com/questions/52515057
复制相似问题