易截截图软件、单文件、免安装、纯绿色、仅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数据查询不行


相关问答:

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

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

ASP+ACCESS输出问题 - Web 开发 / ASP

哪里出错了,输出这样的结果??
<%@ Page Language="VB" AutoEventWireup="false" aspcompat="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&g ......

access中使用table确定位置

  不知道access中是否能够使用table来将各个控件放入相应的table的各个格子中,就跟vs的asp一样。在design中没有找到可以在页面中呈现一个table的工具,向大家求教:access到底是否有这样的工具?

看来,access ......

请问VC里怎么链接access数据库

本人最近在学习vc,对vc操作数据库还很迷惑,不知道哪位能说下vc里怎么样链接数据库的,sql server或access都可以,最好有个例子可以参考下。先谢谢各位

ADO来访问 很方便的,网上很多例子
VC ADO


htt ......

select 1,access里怎么写

select 1 在SQLServer里结果是1,类似的access里怎么写?

select 0 as status, '停用' as name
union all
select 1 as status, '一般用户' as name
union all
select 2 as status, & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号