PHP+MS Access:通过 PHP 查询时通配符 * 被视为字符串?

发布于 2024-11-19 03:37:14 字数 560 浏览 2 评论 0原文

以下是查询:

UPDATE test_5 SET test_5.[it/technical] ='tech' where test_5.[Application URL] like '*' & 'App' & '*'; (to update all Application URLs containing 'App')

运行时:

  • 直接在 Microsoft Access 中:它可以正常工作并且可以正常运行。更新包含单词 APP 的应用程序 URL 的所有记录,即应用程序等已更新

  • 作为通过PHP的查询:通配符< code>* 只是作为字符串的一部分,而不是通配符,因此它仅匹配 *App*(读作 starAppstar);

尽快帮助我...

自过去两天以来一直坚持...

问候, 病毒性的

Here is the query:

UPDATE test_5 SET test_5.[it/technical] ='tech' where test_5.[Application URL] like '*' & 'App' & '*'; (to update all Application URLs containing 'App')

When ran :

  • directly in Microsoft Access: It works correctly & updates all the records with Application URL containing word APP, i.e. Applications etc. are updated

  • as a query through PHP: The wildcard * is taken simply as a part of the string, not a wildcard, thus it matches only *App*(read it starAppstar);

Help me asap...

Stuck at it since last two days...

Regards,
Viral

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文