ASP中的“=”和“<>”在大小写方面不一样吗?

tsinge 2002-02-17 10:37:59
为何在SQL语句中,用“=”,不检查大小写?

在if语句中,使用"<>",却要检查?

请指教!!!
...全文
88 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
julyclyde 2002-02-18
  • 打赏
  • 举报
回复
ASP里根本没有=和《》
freeleo 2002-02-18
  • 打赏
  • 举报
回复
怎么没法收藏?
karma 2002-02-17
  • 打赏
  • 举报
回复
SQL and VBScript belong to totally different domains. It is not strange when they have different definitions for same operators

If in doubt, you can always convert the values to same cases before doing comparisons, for example
UPPER() or LOWER() in SQL,
UCASE() and LCASE() in VBScript

Also in VBScript, you can use
StrComp(string1, string2,1) (0 is same, otherwise different)
to do case-insensitive comparisons

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧