Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4385

RE: Null fields not getting compared using using data compare option of Toad for Oracle

$
0
0

I have been looking at this more closely this morning, and it seems that the problem is not comparison but synchronization.

If you specify a key, the sync statements that we run internally use the key for the where clause, and it assumes that the key is never null.   We make statements like

update EMP
set (non_key_column1 = :value1, non_key_column = :value2, etc....)
where key_column1 = :value3
and key_column2 = :value4

The above doesn't work when the key columns have null values.   In that case, IS NULL should be used instead.

If you click the 2nd sync button, to send a sync script to the editor, then we don't use variables, and statements have literals with IS NULL where appropriate.

So I think if you just run the sync script in the editor, (or save to a file and run in SQL*Plus) then you'll be able to sync your tables.   


Viewing all articles
Browse latest Browse all 4385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>