查询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数据查询不行
相关问答:
本来我是用ACCESS+VB建立一个软件(局域网),现在由于办公地点有变动,相换成INTERNAT的,有没有办法解决,
象这样的情况,如果是广域网,最好改成:B\S的
如果是局域网的,最好改成:C\S的
http://downlo ......
我的数据库是简体sqlserver2000 ,我想在繁体access下连接,通过odbc是可以了,但在access下出现打开的表全中"#已删除"
不知道要怎么操作才可以用ACCESS繁体连接简体sqlserver2000.谢谢!!!
大家都 ......
_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
int ret = 0;
_RecordsetPtr pset;
CString sql;
& ......
哪里出错了,输出这样的结果??
<%@ Page Language="VB" AutoEventWireup="false" aspcompat="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&g ......
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, & ......