In an application, I intend on truncating and inserting on an Oracle 12c database, but have found this issue with an IDENTITY
column. Even though the INSE
In the Oracle Community, this question has been answered. https://community.oracle.com/message/13227544#13227544
insert into T1 (owner_name, pet_count)
with t as (select /*+ materialize */ owner_name, count(*) as pet_count from aux group by owner_name)
select owner_name, pet_count from t
Quoting the original answer, keep in mind the materialize hint is not documented. Thanks to all for your help!