But i was thinking to create a volatile table and insert two values of count of two tables and compare. If duplicate values register error. And at end of loop it will delete the values. It will do the same for all T_NAME. Is this a good idea.
SET V_T_Name = 'INSERT INTO volatiletable SELECT COUNT(*) FROM ' || A || '.' || T_NAME || ';' ;
CALL DBC.SysExecSQL(:V_T_Name);
SET V_T_Name = 'INSERT INTO volatiletable SELECT COUNT(*) FROM ' || B|| '.' || T_NAME || ';' ;
CALL DBC.SysExecSQL(:V_T_Name);
SEL COUNT(*) INTO k FROM volatiletable
GROUP BY rowcount
HAVING ( COUNT(rowcount) > 1 );
Thanks Fred,
But i was thinking to create a volatile table and insert two values of count of two tables and compare. If duplicate values register error. And at end of loop it will delete the values. It will do the same for all T_NAME. Is this a good idea.
SET V_T_Name = 'INSERT INTO volatiletable SELECT COUNT(*) FROM ' || A || '.' || T_NAME || ';' ;
CALL DBC.SysExecSQL(:V_T_Name);
SET V_T_Name = 'INSERT INTO volatiletable SELECT COUNT(*) FROM ' || B|| '.' || T_NAME || ';' ;
CALL DBC.SysExecSQL(:V_T_Name);
SEL COUNT(*) INTO k FROM volatiletable
GROUP BY rowcount
HAVING ( COUNT(rowcount) > 1 );
DEL FROM Volatiletable ALL;