如何在 NetSuite ODBC 查询中使用日期?

How to use dates in NetSuite ODBC query?

我正在尝试在 ODBC 查询中使用日期。

这个有效:

select * from accountingPeriod where startdate > sysdate;

但这些不是:

select * from accountingPeriod where startdate > TO_DATE('2019-04-01');
select * from accountingPeriod where startdate > CAST('2021-04-01' as timestamp);

那么结果是:SQL Error [400] [S1000]: [NetSuite][SuiteAnalytics Connect JDBC Driver][OpenAccess SDK SQL Engine]Failed to retrieve data. Error ticket# l3ml5hfvaurtwlp4g2ko[400][NetSuite][SuiteAnalytics Connect JDBC Driver][OpenAccess SDK SQL Engine]Failed to retrieve data. Error ticket# l3mkzq0bu7tphux0lpkz[400]

感谢帮助!

这成功了:

select * 
  from accountingPeriod 
 where startdate > TO_DATE('2019-04-01','YYYY-MM-DD');