sql="select * from equipment where Name="&content&"" 错了吗?
<%
content=request("content")
sql="select * from equipment where Name="&content&""
'或者是 sql="select * from equipment where Name="&request("content")
'但是 sql="select * from equipment where Name='电脑'" 却是对的
RS.open sql,conn,1,1
%>
提示如下:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC 驱动程序不支持所需的属性。
/OAsys/equip_inquiry.asp,行 32
我装的是 2003 server 版的 难道是这个问题吗?
content=request("content")
sql="select * from equipment where Name="&content&""
'或者是 sql="select * from equipment where Name="&request("content")
'但是 sql="select * from equipment where Name='电脑'" 却是对的
RS.open sql,conn,1,1
%>
提示如下:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC 驱动程序不支持所需的属性。
/OAsys/equip_inquiry.asp,行 32
我装的是 2003 server 版的 难道是这个问题吗?
...全文
相关推荐
JPA 的简单使用
JPA 的简单使用 对类的操作与对数据库操作的对比
Mysql巧用join优化sql的方法详解
主要给大家介绍了关于Mysql巧用join优化sql的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者使用Mysql具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
Cont()与Where().Count()有时性能差别如此之大!
想起我之前在此列表中加入了一个字段,用于方便提示管理员公司的产品列表是否有修改之类的状态字段,于是可以断定是加了此字段的原因。 首先,先看看我之前是如何写这个提示状态字段的,实体中加入ContentStatus,然后直接在Linq语句中Select 实体对象中加入ContentStatus=Product_Maintain.Count(C => C.CompanyID == company.ID && C.IsDeleted == 0 && (C.AuditStatus == 0 || C.AuditStatus == 4))>0?”产品有更新”:””。这时我想应该是加入三元运算,linq在转
Oracle RDB SQL Reference Manual Volume 1
Oracle RDB SQL Reference Manual Volume 1
笔记VC的ADO连接数据库
下面将介绍如何用VC的ADO连接SQL数据库


