query1.sql.add('select a from table');
query1.sql.add('where a not in (select b from table)')';
query1.close;
query1.open;
memo1.clear;
while not query1.eof do begin
memo1.lines.add(query1.fieldbyname('a').asstring);
query1.next;
end;
query1.sql.add('where a not in (select b from table)')';
query1.close;
query1.open;
memo1.clear;
while not query1.eof do begin
memo1.lines.add(query1.fieldbyname('a').asstring);
query1.next;
end;
解决方案 »
- image1载入大图片时如果stretch=true,image1会显示出大图片的缩图,那么如何将这个缩图镜像复制一份赋值给另一个image2的picture呢?
- 怎么实现弹出一个form,用户必须在这个form close以后才能点其它的form?类似于消息框。
- 谁有《〈delphi5开发指南>>,我需要(非电子版本),南京
- 誰有ReportBuilder 7.x開發指南,請傳我1份!
- 怎样在程序中打开lAN中有共享密码的文件夹?密码已知.
- 网络版的数据连接问题?
- application 和clxapplication有什么区别呀!
- 小弟也装了个DBgridEH控件,但是好多功能不明白,谁能提供详细的中文说明,最好能有例子的,谢谢,在线等
- delphi 6 的几个Bug
- 焦点问题:如何做属性页设置!
- 如何将excel的数据导入到SQL Server?
- 我做了一个WORD的帮助文件,在DELPHI中如何打开这个文件(如:333.doc)
query1.sql.clear;
query1.sql.add('select a from table');
query1.sql.add('where a not in (select b from table)')';
query1.close;
query1.open;
memo1.clear;
query1.first;
while not query1.eof do begin
memo1.lines.add(query1.fieldbyname('a').asstring);
query1.next;
end;
这个问题你好像问过一次吧!Select A From table1 Where A Not In (Select A From table1 Where A = B);也可以:Select A From table1 Where A Not In (Select B From table1 );
while not query1.eof do begin
memo1.lines.add(query1.fieldbyname('a').asstring);
query1.next;
select a from tbl where a not in (select b from tbl where not b is null)