大众信息网

在vfp中用find 查询出生年月,如1984.08.18 如何操作 不要用seek

关注:219  答案:2  手机版
解决时间 2021-01-16 23:24
在vfp中用find 查询出生年月,如1984.08.18 如何操作 不要用seek
最佳答案
find为老版本中的命令新版本中使用seek命令兼容包含
全部回答

这个问题已有答案

如果是3个表的话,用sql语句更简单一些,你可以试一试下面的代码。

create table t1(xh c(8))
create table t2(xh c(8))
create table t3(xh c(8))


select t1
for i=1 to 50000
  append blank
  replace xh with alltrim(str(i))
endfor

select t2
for i=20000 to 50000
  append blank
  replace xh with alltrim(str(i))
endfor

select t3
for i=15000 to 40000
  append blank
  replace xh with alltrim(str(i))
endfor

select t1.xh from t1,t2,t3 where t1.xh=t2.xh and t1.xh=t3.xh

我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!