小白求助 两个表删除的问题
文件夹DATA下 cp.dbfth sl
A 1
A 3
A 8
B 2
B 9
C 22
D 29
文件夹linshi下 temp.dbf
th
A
B
E
将TH.dbf中th与temp.dbf中th相同的删除
use linshi\temp.dbf
delete from data\cp where temp.th==cp.th
为什么只删除cp.dbf表中a的行?
应该怎么才能实现都删除?
create cursor cp (th c(1),sl n(4)) insert into cp values ("A",1) insert into cp values ("A",3) insert into cp values ("A",8) insert into cp values ("B",2) insert into cp values ("B",9) insert into cp values ("C",22) insert into cp values ("D",29) create cursor temp (th c(1)) insert into temp values ("A") insert into temp values ("B") insert into temp values ("E") select temp scan delete from cp where cp.th==temp.th endscan select cp browse
create cursor cp (th c(1),sl n(4)) insert into cp values ("A",1) insert into cp values ("A",3) insert into cp values ("A",8) insert into cp values ("B",2) insert into cp values ("B",9) insert into cp values ("C",22) insert into cp values ("D",29) create cursor temp (th c(1)) insert into temp values ("A") insert into temp values ("B") insert into temp values ("E") delete cp from temp where cp.th==temp.th select cp browse