gpt4 book ai didi

postgresql - PGError : ERROR: syntax error at or near "NULL"

转载 作者:行者123 更新时间:2023-11-29 14:24:30 25 4
gpt4 key购买 nike

无法弄清楚这个 postgresql 错误到底在说什么。

PGError: ERROR:  syntax error at or near "NULL"
LINE 1: ...at` < '2011-01-18 21:52:21.607956' OR `checked_at` IS NULL)
^
: SELECT * FROM "accounts" WHERE (`checked_at` < '2011-01-18 21:52:21.607956' OR `checked_at` IS NULL)

有什么想法吗?

最佳答案

反引号是你的问题。

SELECT * FROM accounts WHERE (checked_at < '2011-01-18 21:52:21.607956' OR checked_at IS NULL)

关于postgresql - PGError : ERROR: syntax error at or near "NULL",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4830841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com