无法在 netsuite2.com SQL 查询的 WHERE 子句中使用 lastmodifiedate

Unable to use lastmodifieddate in the WHERE clause in netsuite2.com SQL query

我正在尝试 运行 针对 netsuite2.com 的查询如下:

select lastmodifieddate from transaction where lastmodifieddate>'2016-06-16 18:50:50'

但这会产生错误:

[NetSuite][SuiteAnalytics Connect JDBC Driver][OpenAccess SDK SQL Engine]Failed to retrieve data. Error ticket# kybpw8j91333lgz1ovora[400]

p.s。我正在使用 NQjc.jar JDBC 驱动程序。

此问题与用于连接到分析架构的帐户的日期时间设置有关。为确保它适用于所有情况,请使用 to_date 函数将字符串表示形式转换为 sql datetime 对象:

select lastmodifieddate from transaction 
where lastmodifieddate > to_date('2016-06-16 18:50:50', 'yyyy-mm-dd hh:mi:ss')