When I create a view with (example)
CREATE OR REPLACE FORCE VIEW MY_VIEW( COL_A, COL_B) AS
SELECT COL_A, COL_B FROM MY_TABLE;
And then use toad to generate the script, it always sticks the drop on top.
DROP VIEW MY_VIEW;
CREATE OR REPLACE FORCE VIEW MY_VIEW( COL_A, COL_B) AS
SELECT COL_A, COL_B FROM MY_TABLE;
Is there a way to tell Toad to stop putting the drop on top?
Since it’s doing create or REPLACE anyway, it’s useless.
If you run the toad script somewhere where the view does not already exist, it throws an error trying to perform the useless drop.
When you right click on the object and select ‘create script’
you then have the option to
click on the ‘script options’ tab and deselect the Drop statement check box