Sql developer behavior, expands table.* to show all fields?

Am I doing something wrong, or does sql developer (10g) have an odd behavior?
If I create a view
select mytable.* from mytable
it saves the view like
select mytable.myid, mytable.mycol1, mytable.mycol2 from mytable
IE it replaces the mytable.* with a select clause that includes every column individually. I've never seen any sql editor do anything like this.

I have never seen a sql editor make such massive changes to whatever one entered. It's not SQL Developer doing this, it's Oracle itself.
Here I'm not using any editor, just SQL Plus (repeating Solomon's example):
SQL> create view emp_v as select * from emp;
View created.
SQL> select view_name, text from user_views;
VIEW_NAME                      TEXT
EMP_V                          select "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" from empThis is also documented (indirectly) in the SQL Reference manual under CREATE VIEW:
"If the subquery uses an asterisk (*) to select all columns of a table, and you later add new columns to the table, then the view will not contain those columns until you re-create the view by issuing a CREATE OR REPLACE VIEW statement."
That's because the "select *" is expanded to explicitly name all the columns when the view is created.

Similar Messages

  • Transported table not showing all fields

    dear all
    can u plz help me i have transported a table but its not showing all fileds. whatcan i doto make it show all fields in the table
    Regards
    Flo

    Hi,
    Are there any custom data elements used in the table.
    if so, is all the data elements transported to the table
    first all the data elements to be transported and then the table should be transported if in case they are
    in different transports.
    Regards,
    Venkatesh

  • SQl developer v1.1 doesn't show synonyms that use dblinks.

    Sql developer v1.1 doesn't show in the list of synonyms those whose destiny is accesed through dblink. It only shows the synonyms of local objects.

    I found SQL Developer support for SQL Server too limited for anything other than simple queries on tables/views.
    Squirrel SQL client (open source, free and also java based) may prove a better tool.
    http://squirrel-sql.sourceforge.net/

  • SQL Developer Behavior When Gathering Table/Index Statistics

    Hey All,
    Not sure if this has been posted yet. I did a search and did not find any threads on the topic though.
    I noticed with SQL Developer 2.x, when you using the context menu to gather table/index statistics for a given table, you get no modal progress/waiting window like you did in 1.x. It just kind of "does nothing", even though it did actually execute the DBMS_STATS package. If you press cancel and try to navigate around, you get multiple "Connection is Busy" errors. Eventually it will come back and say "Statistics gathered for table <whatever>". In the old versions there was just a modal window with an animated progress bar while it ran the DBMS_STATS package. What happened to that? Or is this something unique to my install? Anyone else ran into this? Is there a fix or somewhere I can report this as an official bug? FWIW I'm running 2.1.1.64, and this did occur in the initial 2.0 release.
    It is very confusing the first time you run into it... I pressed the "apply" button several times thinking it didn't take, but it ended up running the DBMS_STATS for every click I did.
    Thanks!

    Same happens to all the other context menu opened dialogs. Indeed very confusing at first and disturbing.
    The only official site to report bugs is Metalink/MOS, but you might be lucky if someone from the team picks it up here.
    Regards,
    K.

  • SQL Developer 3.2 does not show warnings

    In SQL developer 3.2, I am trying to compilie package. After compilation it shows following message in script output
    PACKAGE BODY package_name_pkg compiled
    Warning: execution completed with warning
    Everytime I need to use 'SHOW ERRORS' command to see all above warnings.
    Is there any other way to see these warnings without using show errors ?
    --Swarup                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes, you need to use the Procedure Editor.
    http://www.thatjeffsmith.com/archive/2012/01/viewing-plsql-compilation-errors-in-oracle-sql-developer/

  • SQL Developer problem viewing tables

    When I connect to a particular database at work I cannot see the tables under a schema I have access to.
    I know that my permissions are correct because i can connect to the same db with Enterprise Manager Console and i can see the tables under the particular schema. In SQL Developer however when i log in, under the connections tab i expand the connection, then expand Other Users, expand the schema i need to get the tables from, I then expand Tables. When i do that last step SQLD acts like it is looking up the tables but then it just hangs and is perpetually looking for the tables. If i try to click cancel that will stop it but then if i click anywhere else in the program im locked up and have to use taskman to kill it off.
    There are a large number of tables under this schema so i have even let this run for 5+ minutes and nothing happens. Like i said i know i have permissions to get to the tables because i can do so in another program.
    Forgot to mention that this is a connection to our live dbs...I can connect and see the exact same tables under the same schema when connecting to one of our archive dbs, so i know that i can actually see tables in the program.
    Im not sure what else to post here to tell you how im setup so ask any questions and ill see if i can answer them.
    TIA for any help or ideas you can give me.
    btw im using version 1.5.3 Build MAIN-5783
    Edited by: RedDeuce on Feb 18, 2009 1:44 PM

    There is a known problem with the performance of the tables node on the connection navigator in SQL Developer 1.5.3 - see Re: Still experienceing problems "tables" node performance. We need to wait until 1.5.4 to get the fix, whenever that is going to be released.
    theFurryOne

  • SQl Developer - making multiple tables

    I have the following code:
    CREATE TABLE "STAFF"
    "STA_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
    "STA_SURNAME" VARCHAR2(20 BYTE),
    "STA_FIRSTNAME" VARCHAR2(20 BYTE),
    "STA_STARTDATE" DATE,
    "STA_JOBTITLE" VARCHAR2(20 BYTE),
    "STA_SALARY" NUMBER,
    "STA_ACTIVE" VARCHAR2(20 BYTE),
    "STA_STAMP" VARCHAR2(20 BYTE),
    PRIMARY KEY ("STA_ID"),
    CONSTRAINT staff_ck_sta_salary CHECK (STA_SALARY>0 AND STA_SALARY<100000.00)
    CREATE TABLE "HIRE"
    "HIR_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
    "HIR_BRA_ID" VARCHAR2(20 BYTE),
    "HIR_CUS_ID" VARCHAR2(20 BYTE),
    "HIR_STA_ID" VARCHAR2(20 BYTE),
    "HIR_HIREDATE" DATE,
    "HIR_DUEDATE" DATE,
    "HIR_RETURNDATE" DATE,
    "HIR_CHARGE" VARCHAR2(20 BYTE),
    "HIR_PENALTY" VARCHAR2(20 BYTE),
    "HIR_TOTALPAID" NUMBER,
    "HIR_COMMENTS" VARCHAR2(50 BYTE),
    "HIR_STAMP" VARCHAR2(20 BYTE),
    PRIMARY KEY ("HIR_ID")
    In SQL Developer, if I select the SQL code for each table individually, I can run the statement and create each table. My question is this... can I select both lots of code and then create the tables with one press of the run statement button. I am asking this because I have many tables, and it is slow to do each one, one at a time.
    thanks
    Canning

    Hi,
    that is possible in sql * plus. but i don't know that option is there in sql developer or not.
    i think you have the sql plus so you can execute from that also.

  • Access 2013 - Query showing all/* fields by default!

    hi - does anyone know why my queries are pulling ALL the fields from a table even though I am only selecting a couple of fields?
    Here's the steps to recreate:
    Create, Query Design
    add table
    drag a couple of fields to display
    So then it shows me ALL the fields in table, so I have to go into SQL and take off the * after Select statement:
    SELECT T_CONTACT.name_last, T_CONTACT.birthday, *
    FROM T_CONTACT;
    but I did not drag the * into my query design!
    Help - this is super annoying!
    thanks!

    Open the query in design view.
    Click in an empty part of the upper pane of the query design window.
    If necessary, activate the Property Sheet (F4).
    Set the 'Output All Fields' property to No:
    You can turn this off as default setting:
    Select File > Options.
    Click Object Designers in the navigation pane on the left hand side.
    Clear the check box "Output all fields" in the "Query design" section.
    Click OK.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Bug: Sql Developer v1.2.1 (32.13) - Date Field Editor doesn't work properly

    Version: Sql Developer v1.2.1 (32.13)
    OS: Windows XP SP2
    Database: Oracle 10g
    Symptoms:
    I have a table with a DATE field.
    In a record of this field a have a value such as : 12/31/0003 (I know this is a strange date value) but the problem is that if I try to change this value using SqlDeveloper grid editor in 12/31/2003, it seems to not recognize the change without enabling the Commit Button and keeping the 0003 value !

    OK, I'm not understanding you exactly. It's not the formatting that you're having an issue with, but the editor. I have a date for a record that is 17-Feb-2006 and I want it to be 17-Feb-1996, so I invoke the date editor and highlight just the year and make the change. Just type in the new year and say OK. This then causes the Commit button to become available, because we have made a change and then I commit the record.
    The record is committed correctly, with the correct years, regardless of whether I have the formatting as RR, RRRR, YY or YYYY.
    Sue

  • Why the ALV download Excel can't show all field title?

    Dear All
             I have a problem for ALV download to Excel
    Example: the field  title description has 11 len bits when I download Excel then the field title is u2018descriptiou2019 only 10 len bits. I found when the field value is more then 11 then can show all,if the field value less than 11 then download Excel only show 10.
    The description has 40 bits.if itu2019s value less 40 then ALV CONDENSE the space .
    I removed this code: GT_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.but problem is also exits.
    How can I do ?
    Thanks

    Make sure you populate below, it may help you to solve your problem. 
    t_fieldcatalog-col_pos     = col_pos.
    t_fieldcatalog-outputlen   = out_len.
    Rgds,
    SaiRam

  • Table structure shows less fields than in output

         Dear Experts,
    The requirement is get the value of KTEXT and LTEXT of table CSKA.
    If you see the structure of CSKA in SE11, it will show 10 fields but when you see the values, it will show 12 fields including KTEXT and LTEXT.
    How to extract the data from KTEXT and LTEXT.
    PS: How to get the values of KTEXT and LTEXT.
    Regards
    Mani

    Hi Mani,
    The CSKA table contains only 10 fields but you can see extra three fields KTEXT, LTEXT and MCTXT fields. These are the fields from CSKA text table. In order to check text table traverse through Goto -> Texttable. It will show the text table CSKU in this case. From CSKU you can fetch the three fields.
    Hope this helps you.
    Regards
    Pallavi

  • Unable to show all fields from a table\view within a SSRS Report Model for user selection

    I recently added a new view with a simple SELECT (with 3 fields) statement to our existing Report Model DSV. I then went ahead to the report model (.smdl) file proceeded with the auto-generation of the new attributes which of course ran with no issues.
    I was seeing the three new fields as attributes. But when I went within the existing Perspective to add the newly added fields so that the users see them, one of the field is missing. It is just a VARCHAR field. What would it cause this field to not show up
    within a Perspective?
    Any help is greatly appreciated.Thanks,
    Nimesh
    NM

    Hi NM,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • GROUP BY a single field, show all fields

    I have this table:
    CREATE TABLE Prices(ServiceType VARCHAR2(30), EffectiveDate DATE, Fee NUMBER, Commission NUMBER, PRIMARY KEY(ServiceType, EffectiveDate));
    I am trying to write an SQL query to get the ServiceTypes and Fees. However, I only want those with the most recent EffectiveDate.
    This is what I have so far:
    SELECT ServiceType, Fee, MAX(EffectiveDate) FROM Prices GROUP BY ServiceType;
    But that doesn't work because GROUP BY has to be followed by all selected attributes. Does anyone know how to write that query? Thanks in advance,
    Nader

    Why dont you use a sub query liek below:
    SELECT ServiceType
                , Fee
                , EffectiveDate
      FROM Prices    out
    WHERE EffectiveDate = ( SELECT MAX(EffectiveDate)
                                             FROM Prices   in
                                          WHERE in.ServiceType = out.ServiceType
                                               AND in.Fee              = out.Fee 
                                      GROUP BY ServiceType
                                                      , Fee
                                        );Regards
    Arun

  • At run time,ALV table is displaying all fields of database table

    Hi all
    I done one application using ALv I am displaying the ALV Table.my problem is at run time it was fetching and displaying all the fields in the data base table but i need only the fields which are defined in node.
    Please help me.
    Thanks and Regards
    Tulasi Palnati

    Hi,
    May be you have specified the database table as the Dicitonary structure property of the node.
    Check the same and if its there clear the Dictionary structure property of the node.
    Hope this solves your isse!
    Regards,
    Srilatha

  • How to show all fields when we do not enter any data

    Hello all,
    Here i am creating the SSRS reports on SharePoint list data, Report is created successfully but the requirement is that when generation of report if i do not enter value of employee name that time .....I want the report must display all records of all employees.
    Please suggest me.... 

    Hi Anil,
    If I understand correctly, you have create a report use SharePoint list as the datasource. When you run the report, you need to enter value of employee name to display corresponding values.
    If we are use SharePoint list as datasource, we have two method to add parameter in the report.
    Method1: Add filter in the dataset Query Designer dialog box.
    In this situation, if we configure the filter with “(blank)” in the Value dialog box, we will get the situation as your post. In this method, we are get a single value parameter in the report.
    Method2: Add a dataset parameter. Please refer to the steps below:
    Create another dataset (DataSet2) in the report with EmployeeName field.
    Add a parameter (ReportParameter1) in the report. Select “Allow multiple values” option in the General dialog box.
    Click “Available Values” in the left pane, select “Get values from a query”. Please refer to the values below:
    Dataset:     DataSet2
    Value field:    EmployeeName
    Label field:    EmployeeName
    Click “Default Values” in the left pane, select “Get values from a query”. Please refer to the values below:
    Dataset:     DataSet2
    Value field:    EmployeeName
    Right click DataSet1, select DtaSet Properties. Click Filters in the left pane. Please refer to the values below:
    Expression:   [EmployeeName]
    Operator:    In
    Value:   [@ReportParameter1]
    Reference: http://msdn.microsoft.com/en-us/library/dd220464.aspx
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for