aws timestream“不等”比较引发错误
我有一个查询,我想获取所有“完成”字段不等于0的数据,但会引发错误。我不明白为什么为什么他们的
$result = $query_client->query([
'MaxRows' => 1,
'QueryString' => 'SELECT field1, field2, completed, date
FROM "db"."table"
WHERE completed != 0 // Tried as "0" as well, doesnt work
ORDER BY date DESC',
]);
错误:
com.amazonaws.timestream.v20181101.Query#verialationException, '<>'不能应用于varchar,整数
I have a query where I want to fetch all data where "completed" field is not equal to 0, but it throws an error. I dont get it why as their documentation supports these comparisons.
$result = $query_client->query([
'MaxRows' => 1,
'QueryString' => 'SELECT field1, field2, completed, date
FROM "db"."table"
WHERE completed != 0 // Tried as "0" as well, doesnt work
ORDER BY date DESC',
]);
Error:
com.amazonaws.timestream.v20181101.query#ValidationException,
'<>' cannot be applied to varchar, integer"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样修复了它:
Fixed it like this: