易截截图软件、单文件、免安装、纯绿色、仅160KB

查询access的数字类型

select * from table where [pname]='''+edit1.text+'''  不好用
'select * from table where [pname]='+QuotedStr(edit1.text)
如果字段是数字型的
'select * from table where pname='+edit1.text


字符
str:='select * from table where [pname]='''+edit1.text+'''';
数字
str:='select * from table where [pname]='+edit1.text;

query.sql.add('select * from table where pname=0');这样在access数据查询不行


相关问答:

asp跟Access数据连接问题。

IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)

'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......

如何通过ADO使用聚合函数来查询(数据库为ACCESS)

_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
    int ret = 0;
  _RecordsetPtr pset;
CString  sql;
& ......

Access查找重复问题

ACCESS数据库中有一个tablename表,设计如下 
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注” 
其中"编号"维一,在“ISBN”中有的为空值, ......

Access查找重复问题

ACCESS数据库中有一个tablename表,设计如下

编号,书名,作者,出版时间,出版社,ISBN,目录,简介

其中除“编号”为自动编号外,其它都为“备注”

其中"编号"维一,在“ISBN”中有的为 ......

access的“unspecified error”问题请教

本地调用了一个access,在我机器上测试没问题,但是放到英文的xp上就出“unspecified error”错误。代码大体如下:

g_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=CenterServe ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号