RE: SQL Developer - view DDL Formatting
Date: Wed, 26 Apr 2017 10:35:43 +0000
Message-ID: <8CA507E7F87805479C5C3DF54AA713A7816EAC63_at_LISL-XMBS-14-PP.snaponglobal.com>
Ø I just dont see any good reason to use the attribute list.
As a personal style or standard, you might choose not to override column names in the attribute list – but if you are extracting DDL for an existing view then you are at the mercy of whoever wrote that view.
i.e. if the original author wrote
Then you definitely need the column specification to correctly re-create the view.
Mike Tefft
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Fergal Taheny
Sent: Tuesday, April 25, 2017 4:47 PM
Hi Mark
I have a different opinion on this. If I want the column names to differ I use an alias in the select statement. The problem I see with the attribute list is that it can get out of sync with the attributes in the select list. I just dont see any good reason to use the attribute list.
Agreed. I didn't say anything about automatically adding columns to views.
CREATE OR REPLACE VIEW V (DOG) as SELECT DUMMY AS CAT FROM DUAL;
To: Powell, Mark <mark.powell2_at_dxc.com>
Cc: Michael D O'Shea/Woodward Informatics Ltd <woodwardinformatics_at_strychnine.co.uk>; jeff.d.smith_at_oracle.com; oracle-l_at_freelists.org
Subject: Re: SQL Developer - view DDL Formatting
Yes thanks but I was just trying to figure out if SQL Developer Database export could do this for me.
Regards,
Fergal
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Apr 26 2017 - 12:35:43 CEST