我正在使用 node-pg 并尝试执行以下查询:
var q = "SELECT * FROM parentorder WHERE trade_date = (now() + interval '6h 55m')::date ORDER BY create_us DESC LIMIT 50";
// Parent Orders
db.query(q, function(err, result) {
if (err) throw err;
console.log(result.rows);
});
查询抛出此错误
error: operator does not exist: character = date
有什么想法吗?