查询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数据查询不行
相关问答:
IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)
'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......
_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
int ret = 0;
_RecordsetPtr pset;
CString sql;
& ......
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为空值, ......
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为 ......
本地调用了一个access,在我机器上测试没问题,但是放到英文的xp上就出“unspecified error”错误。代码大体如下:
g_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=CenterServe ......