首页 > 数据库 > DB2 > 正文

DB2/400中比较两个库中的obj的不同

2020-03-09 21:23:52
字体:
来源:转载
供稿:网友
有两个库,一个存放生产数据,一个存放测试数据,其中含有几千个文件,如何在os/400上比较某个file在库1,而不在库2中?
方法:
1.dspobjd obj(testdb/*all) objtype(*all) output(*outfile) outfile(ynlib/file1)
         detail(*basic)
 dspobjd obj(prcdb/*all)  objtype(*all) output(*outfile) outfile(ynliv/file2)
         detail(*basic)
2.strsql
3.select odobnm from ynlib/file1 where
        odobnm not in(seleect odobnm from ynlib/file2 )
这样就可以找出在测试库中而不在生产库中的obj

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表