select * from db1,db2 where db1.col='1' or db2.col='1'错在哪儿? 两张foxpro的表,结构一样,我把它们凡是col='1'的记录全搜出来,这样写结果不对,该怎么写才行啊 ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 当然不对。select * from db1 where col = '1' union allselect * from db2 where col = '1' 或是select * from db1,db2 where db1.col=db2.col and db1.col=1 and db1.col=1 where db1.col=1 and db1.col=db2.col就可以了! Delphi如何转换双线性插值? 关于delphi swf sdk的安装问题 在stringgrid中如何修改数据库数据并提交 请问如何将windows外部的东西(如一个快捷方式)拖到程序里。 请教:如何把delphi写好的应用程序发布给客户?? 怎样判断一个控件是否具有某个属性? 使用UNION从数据库中取image字段出错的问题,有点难... selecenext 获取焦点的问题 如何在 cxgrid组件单元格中 动态创建 checkbox组件? 多表更新的Sql语名怎么写 问你一个问题,关于Delphi的网络编程的!(内详) 那有delphi7的升级版
union all
select * from db2 where col = '1'
select * from db1,db2 where db1.col=db2.col and db1.col=1 and db1.col=1
就可以了!