有两个表:a(id,num) ; b(id,type);a表中num是外部b关键字;
(1, 1) ; (1, 100)
(2, 1 ) ; (2, 200)
(3, 2 ) ; (3, 300)
(4, 3 ) ; (…,…)
请问:怎么查询b表中type小于某个数(可能为:200,300……)返回a的记录。??
谢谢回复!
(1, 1) ; (1, 100)
(2, 1 ) ; (2, 200)
(3, 2 ) ; (3, 300)
(4, 3 ) ; (…,…)
请问:怎么查询b表中type小于某个数(可能为:200,300……)返回a的记录。??
谢谢回复!
解决方案 »
- 如何注册ms datagrid控件?
- 问一个关于ORACLE中BLOB类型数据与TDBRICHEDIT(或TRXDBRICHEDIT)相结合的显示乱码问题
- 服务程序(Service Application)能不能在WIN98下运行?
- 求教:WinSkinForm控件安装问题!!
- 发声
- 请问这样的报表用FastReport怎样做???
- 写文件时提示I/O error?
- 怎么将数据库中的数据取出来放入ComboBox.
- DBCtrlGrid中我如何根据表中的值决定某字段是否显示?可能有的行显示,有的不显示。
- DELPHI如何用WINDOWS的API,,??为什么我的不能用,SOCKET这个类型?
- 关于窗体引用的问题,大家帮忙,一定给分
- 如何自己制作office小助手
from a
jion b on a.num=b.num
where b.ytpe>200
where b.ytpe>200
//////////////
改为
jion b on a.num=b.id
where b.type>200
from a,b
where (b.ytpe>200)and(a.num=b.id)
//也可以