可以这样查询吗:
select char1,char2,char3 from tab1,tab2 where char4='sdf'
以前课本上好象有这种写法,请教这样行吗,如果要改,在哪里改一下。
select char1,char2,char3 from tab1,tab2 where char4='sdf'
以前课本上好象有这种写法,请教这样行吗,如果要改,在哪里改一下。
解决方案 »
- 不下载文件的前提下,如何判断远程URL的文件是否发生改变?
- 问一下,为什么设置窗体透明后,用了皮肤,窗体还是不透明呢,求救
- SQL2000+delphi的一些问题,请大家指点一二!小生不胜感激!!站等!!!站等!!!!!!!!!!!
- 利用IP地址连接网络数据库
- copy(),delete() pos()这三个函数
- 传送和接收txt
- object pascal
- 100分...............
- 急~~~~~
- 我发现,我的问题越来越少人回答了。:-( 。老鱼,有空帮我看看这个问题。另外,推荐几个数据库高手给我,好吗?
- 请帮我出出主意,给点思路,谢谢!
- 我是刚学Delphi的,遇到一个问题,请帮忙相告!
只是你tab1 tab2没有关联,而且前面的几个字段如果是两个表都有就要加前缀。
select a.char1,a.char2,b.char3
from tab1 a,tab2 b
where a.id=b.id
and b.char4='sdf'
from tab1 a,tab2 b
where a.id=b.id
and b.char4='sdf'
from tab1 a,tab2 b
where a.id=b.id
and b.char4='sdf'
adoquery5.SQL.Add('select '''+str+''' from '''+str1+''' where '''+str2+'''');
adoquery5.Open;
str是表名.字段名
str1是表名
str2是查询条件。