WebDAV 搜索整数数据类型

发布于 2024-12-08 06:12:53 字数 342 浏览 4 评论 0原文

我有一个 WebDAV 查询,它在 Exchange 2003 服务器上的字段“TestField”上搜索值为“3”的电子邮件。该字段包含 Integer 类型的数据(另一个应用程序使用数据类型 OlUserPropertyType.olInteger 设置该字段)。

SELECT "TestField" FROM "http://server/exchange/mailbox/mialbox" WHERE "TestField" = 3 

我总是收到“错误请求 (400)”。在具有其他数据类型(字符串)的另一个字段上是有效的。

这些有什么问题吗?我必须转换该值,但我该怎么做呢?

I have a WebDAV query which search for e-mails on an Exchange 2003 server on field 'TestField' with the value '3'. This field contains data of the type Integer (an another application set this field with data type OlUserPropertyType.olInteger).

SELECT "TestField" FROM "http://server/exchange/mailbox/mialbox" WHERE "TestField" = 3 

I received always a "Bad Request (400)". On another fields with another data types (string) is works.

What is wrong in these? Must I cast the value but how can I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

━╋う一瞬間旳綻放 2024-12-15 06:12:53

问题解决了。铸造是解决方案。

WHERE CAST("TestField" AS "int") = 3

Problem solved. Casting is the solution.

WHERE CAST("TestField" AS "int") = 3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文