将 asp-classic SQL 语句翻译为可识别的术语

发布于 2025-01-03 05:21:46 字数 412 浏览 1 评论 0原文

我在一个 ASP 文件中有这个 SQL 语句需要处理,但我以前从未处理过 .asp。我主要使用 PHP 工作,我对 PHP 的 Select SQL 语句更熟悉。

我只需要一些帮助,将其简化为熟悉的术语:

SelectSQL   = "SELECT * FROM BusinessInfo WHERE ((CatID = " & intBusiness_Category & ") or (CatID2 = " & intBusiness_Category & ") or (CatID3 = " & intBusiness_Category & ")) and (intStatusCodeID = 1) and (intOnWeb = 1) Order By vcBusinessName"

I have this SQL statment in an ASP file that i to deal with, and i have never dealt with .asp before. I workly mainly with PHP some im more familiar with PHP's Select SQL statements.

I just need some assistance bringing it down to familiar terms:

SelectSQL   = "SELECT * FROM BusinessInfo WHERE ((CatID = " & intBusiness_Category & ") or (CatID2 = " & intBusiness_Category & ") or (CatID3 = " & intBusiness_Category & ")) and (intStatusCodeID = 1) and (intOnWeb = 1) Order By vcBusinessName"

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

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

发布评论

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

评论(1

无所谓啦 2025-01-10 05:21:46

该语句从 BusinessInfo 表中选择 CatID、CatID2 或 CatID3 列中的值与您的变量 (intBusiness_Category) 匹配且 intStatusCodeID 和 intOnWeb 值为 1 的所有行和列。它还按vcBusinessName 列

The statement is selecting all rows and columns from the BusinessInfo table that have a value in the CatID, CatID2, or CatID3 columns that matches your variable (intBusiness_Category) and the intStatusCodeID and intOnWeb values are 1. It is also sorted by the values in the vcBusinessName column

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