在一张access表中嵌套查询
strSQLCmd.Format(_T("select * from (select * from talk_info where %s ='%s') where %s ='%s'"),
strVar,strValue,strVar2,strValue2);
请问这语句有问题吗
没有问题。
建议你通过调试把这个 ("select * from (select * from talk_info where %s ='%s') where %s ='%s'"),strVar,strValue,strVar2,strValue2)
输出看一下结果是什么? 估计你的变量有问题。
strSQLCmd内容是什么
CString strSQLCmd;
是不是变量的值代进去是这中形式啊:strSQLCmd.Format(_T("select * from (select * from talk_info where strVar ='strValue') where strVar2 ='strValue2'");
相关问答:
十万记录分页效页要求很高,不能读取有的记录那种.并且上下都可以翻页,在结果中排序.如:
按日期排序
&n ......
select top 20 * from tb
where 字段名 not in
(select top 10 字段名 from tb)
我知道用这种方法可以得到10-20的数据
但是如果数据很多
比如select top 100020 * from tb
where 字段名 not ......
<?php
include("adodb/adodb.inc.php");
$db = &NewADOConnection("access");
$access = realpath("Data.mdb");
$dsn = "Provider=Microsoft.J ......
在TEXT1.TEXT 中读取EXCEL的路径
选择combo1.text中的数据表名称
点击导入后 如果字段和数据库的一样 就执行导入 否则提示出错信息
各位大哥帮帮小弟 要怎么写这个执行程序 现在 ......
本来我是用ACCESS+VB建立一个软件(局域网),现在由于办公地点有变动,相换成INTERNAT的,有没有办法解决,
象这样的情况,如果是广域网,最好改成:B\S的
如果是局域网的,最好改成:C\S的
http://downlo ......