In Oracle database I have two schemas with two tables that mirror each other, except for one column which in both tables is varray of numbers, but in schema A it's A.VARRAY
, and in schema B it's B.VARRAY
.
As a result I'm unable to migrate data between tables, since they have inconsistent datatypes.
Is there any way to change column datatype from A.varray
to B.varray
without losing data?
Just use
cast(col as B.VARRAYTYPE)
: