Is this a bug? create view lost a comma and succeeded

Is this a bug? create view lost a comma and succeeded.
oracle 10.2.0.1.0
try the following sql.
create table test
id int,
dataa varchar2(20),
datab varchar2(20)
insert into test values(1,'a1','a2');
insert into test values(2,'b1','b2');
insert into test values(3,'c1','c2');
create view vtest
as
select id,dataa
datab
from test;
--it should be error but successed
select * from vtest;
--and dataa gone!
drop view vtest;
drop table test purge;

No it's not a bug, Oracle will treat "datab" as alias to "dataa" if comma left out.
Doesn't your view has two columns id and datab, but datab column showing dataa data?

Similar Messages

  • I have updated my iPhone 3s to the latest software. I had backed up my phone before I did this. Now I have lost my music and apps. I can't sync the phone with my Mac, I can't re-download as the phone says I don't have any music or apps available. Help!

    I have updated my iPhone 3Gs to the latest software in an attempt to iron out a problem with a new telephone network provider (Tmobile). I had backed up my phone before I did this. Now I have lost my music and apps. I can't sync the phone with my Mac, I can't re-download from iTunes as the phone says I don't have any music or apps available to re-download although it all shows up on my Mac. The music and app content cannot be restored when I try to restore the phone from the back up I madeon my Mac. Help!

    Working on that now.  I'm just getting frustrated that everytime I run updates for the phone I end up with tech problems that I have to spend time solving as opposed to updates that actually improve my usage.  Now I will once again get to spend hours reloading my phone all for updates that didn't affect my usage in the first place.

  • What does the PopUp "Prevent this page from creating additional dialogs" really mean and if I check the Box, how do I undo this if this was the Wrong Thing To Do?

    What does the PopUp "Prevent this page from creating additional dialogs" really mean and if I check the Box, how do I undo this if this was the Wrong Thing To Do?
    Details
    Constantly, while using Firefox (Beta v 11.0), and/or ESPECIALLY, when I have my eMail @ Mail.com open, I get this PopUp stating: "For security reasons, restarting mail.com Mail is possible only via the mail.com Mail Service. Please close this window and restart mail.com Mail" BUT Then there is a CHECKBOX: "Prevent this page from creating additional dialogs."
    I have no idea if Checking this Box is a Good Idea or if it will Screw-Up my mail.com Mail Service...
    Anyone have an answer or explanation of the Use of this Little Check-Box?
    BJ Orden [email protected]

    You do not get any pop-up windows on that website if you tick that box.
    That setting is stored in the cache and you should see pop-ups again if you reload the page and bypass the cache.
    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)

  • Creating View based on Current and previous data from same table

    I am trying to create a view based on a table called “my_companies”. The table has following columns: “company_id”, “start_date”, “product_type_code”, “partner_id”
    The main purpose of this view is to obtain previous company_id’s associated with a particular “partner_id“and “product_type_code”. So basically, I’m looking to create an extra column, say “prev_company_id” in the view along with all the other columns. The “previous” data can be obtained depending on the “start_date”. I’m not able to write a query successfully to do this.
    Can anyone help? Thanks in advance.

    Hi,
    Whenver you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    Formatted tabular output is okay for (3). Type before and after the tabular text, to preserve spacing.  The sample results should include any special cases that you foresee, such as one company having many previous companies, or vice-versa.
    It sounds like might need a +self-join+, where you have two copies of the same table, as if the current companies were in one table and the previous companies were in another, even though they are all actually in the same table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create View without inbound, outbound and navigation link

    Please look at this picture:
    There are:
    + PanelView
    + View 01
    + View 02
    + EmptyView
    In the PanelView, there are two buttons,  button01 and button02. When press on button01, it shows View01; when press on button02, it shows View02.
    Problem is:
    How to do above things without creating inbound, outbound and navigation link.
    Thank u a lot.

    Dear Mr.         Raghunandan Madarikuruva ,
    Everything is very easy if there are inbound, outbound, and navigation link.
    What happen if there isn't inbound, outbound, and navigation link.
    My problem is how to open each childview without  inbound, outbound, and navigation link.
    How can I do that
    Thank you for answer my question.
    Thank you again
    This is yahoo ID: [email protected]
    and Skype ID: doleminhtriet
    May I talk to you?
    Edited by: krisscage krisscage on Sep 26, 2008 10:53 AM

  • My toobar had an important file on Resonance and it just completely disappeared. Many files of importance. This happened once beforea a year ago. This is bug I assume you know about and I have no hope of retrieving files? Alan Tower

    My toolbar had a folder called Resonance with many important urls etc. It just completely disappeared from the Toolbar list. This happened once beforea a year ago. This is a bug I assume you know about. Do I have any hope of retrieving urls? thanks, Alan Tower
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    Thanks so much. Your reply worked!
    Very grateful to you edmeister.
    AT

  • How to Create a View of a Query and assign it into my web template?

    Hi All,
    I need to create 3 views for my query and show that on my web template. I have never done this before. Can you please let me know step-by step procedure to create views for a query and how to show it on my WAD report?
    Thanks,
    Satyam

    Hi Satyam,
    Include the Dropdown Box web item in your web template. In the Web Item Parameters tab, select the Data Binding type as Query View Selection. Assign the Dataprovider from Selection of Query Views button below the Data Binding Type. You also have the option to Display Specific list of Query Views or all views based on that Query. For this you have to choose Selection of Query Views button. Here you can turn on Specific List of Query Views checkbox and select the Views depending on your requirement.
    Regards,
    Hari.
    Edited by: Hari Krishnan K on Aug 18, 2010 2:33 PM

  • Create view structure based on table

    Hi,
    I've got two tables one spec table containing a table num, column name and column length. For example:
    Table num             Column name         Column length
    1                    client_id                          8
    1                    client_name                    15
    1                    client_gender                   1
    2                    order_num                       4
    2                    order_date                       8
    ...and one data table containing multiple records with table num and data for each table num defined in spec table. For example:
    Table num          Data
    1               12345678Ben Anderson   M
    1                75486923Evy Jans       F
    2                123420/05/07
    2                000117/04/07
    ...How can I create a script to create a view for table num '1' based on the strucure defined in the spec table and containing the data of table one that is stored in the data table?
    Thanks.
    Regards,
    Ken

    Assuming that the spec table has a column position column then given these tables:
    SQL> SELECT * FROM tab_spec;
        TAB_ID COL_NAME                          COL_LEN    COL_POS
             1 client_id                               8          1
             1 client_name                            15          2
             1 client_gender                           1          3
             2 order_num                               4          1
             2 order_date                              8          2
    SQL> SELECT * FROM tab_data;
        TAB_ID DATA
             1 12345678Ben Anderson   M
             1 75486923Evy Jans       FA procedure along the lines of:
    CREATE PROCEDURE make_view (p_tab_id IN NUMBER,
                                p_view_name IN VARCHAR2) AS
       l_sql   VARCHAR2(32767);
       l_start NUMBER := 1;
    BEGIN
       l_sql := 'CREATE VIEW '||p_view_name||' AS SELECT ';
       FOR r IN (SELECT col_name, col_len
                 FROM tab_spec
                 WHERE tab_id = p_tab_id
                 ORDER BY col_pos) LOOP
          l_sql:= l_sql||'SUBSTR(data,'||l_start||', '||r.col_len||') '||
                  r.col_name||',';
          l_start := l_start + r.col_len;
       END LOOP;
       l_sql := RTRIM(l_sql, ',')||' FROM tab_data WHERE tab_id = '||p_tab_id;
       EXECUTE IMMEDIATE l_sql;
    END;should do the trick. Note that the owner of the procedure will need to have the CREATE VIEW privilege granted directly and not through a role.
    Having done this, I must reiterate what others have already said. This is a spectacularly bad idea. Rather than creating a view, I would change it to generate a CREATE TABLE statement to dump the data into proper tables.
    John

  • When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on running javascript

    When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on executing javascript and raising errors.

    What are the error messages you are seeing?

  • Purpose of Creating View

    Hi Experts,
    Good Noon.
    Am new to OBIEE,and in the learning stage..a quick question !!!!Can you tell what is the purpose of creating VIEW in OBIEE? And what all VIEWS we can create in OBIEE?
    Hoping for a prompt response.
    Regards,
    Rishi.

    Hi ,
    creating views let you to test new columns(calculated or not ) new tables (you can merge several tables in one view) before applying the changes on the database .
    sure it stills not performer like a physical table but somtimes like in my case when you don't have full access on the database it stills the only solution that you have .
    Sincerly

  • Plz help me create a Procedure with create view cmd

    i want to create a view from the procedure like the following one,
    It creates the proc but while running it show invalid column name please help me;
    create or replace procedure asho2005.mock_pro( fin_fr_dt in date, fin_to_dt in date) is
         ffdt date;
         ftdt date;
    begin
         select to_date(fin_fr_dt,'dd-mm-yyyy') into ffdt from dual;
         select to_date(fin_to_dt,'dd-mm-yyyy') into ftdt from dual;
    execute immediate 'create or replace view mock_vu as select a.amt from cbtran a where chq_dt > ffdt and chq_dt <ftdt';
    end;

    i want to create a view from the procedure like the
    following one,
    It creates the proc but while running it show invalid
    column name please help me;
    create or replace procedure asho2005.mock_pro(
    fin_fr_dt in date, fin_to_dt in date) is
         ffdt date;
         ftdt date;
    begin
    select to_date(fin_fr_dt,'dd-mm-yyyy') into ffdt
    t from dual;
    select to_date(fin_to_dt,'dd-mm-yyyy') into ftdt
    t from dual;
    execute immediate 'create or replace view mock_vu
    vu as select a.amt from cbtran a where chq_dt > ffdt
    and chq_dt <ftdt';
    end;Hallo,
    your problem is , that execute immediate does't recognize ffdt
    You have to concatenate literals
    create or replace procedure asho2005.mock_pro( fin_fr_dt in date, fin_to_dt in date) is
    ffdt date;
    ftdt date;
    begin
    select to_date(fin_fr_dt,'dd-mm-yyyy') into ffdt from dual;
    select to_date(fin_to_dt,'dd-mm-yyyy') into ftdt from dual;
    execute immediate 'create or replace view mock_vu as select a.amt from cbtran a where chq_dt > '''||ffdt||''' and chq_dt <'''||ftd||'''';
    end; BTW, your view doesn't return any rows
    ffdt and < ffdt :-)
    Besides that , it's a very very bad method!
    You must not create views in runtime. Use of literals results in hard parsing .
    The performance will be poor.
    You have to create view in design time, and then simply use select:
    select * from mock_vu where chq_dt > (your_date) and something else
    HTH
    Regards
    Dmytro
    corrected wrong number of quotes (no wonder ) :-)
    Message was edited by:
    Dmytro Dekhtyaryuk

  • When attempting to add a calendar event, I am getting the message "This calendar was created by mail..."  Not true!  How do I fix this?

    When attempting to add a calendar event, I sometimes get a message "This calendar was created by mail, etc." and I am unable to add an event. This is very frustrating.  Help!

    Reset it by holding the Power and Home buttons at the same time until you see the Apple logo, then releasing.

  • HT1449 After moving music and movies from my MacBook Air to an external hard drive, do I create a new iTunes music and media folder on my computer then add more music and movies, then will I be able to move the computer music/media to the hard drive musci

    I need to move the music and movies from my MacBook Air (original) to an external hard drive, after I do this, do I create a new music folder and media folder on my computer to load music/movies in via the dedicatd external drive and then would I be able to move the newly imported to the external drive which would be my main site of storage?

    No, do it all in one go and henceforth only use the library located on the external drive.
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • Is this a bug? master rowid value lost when saving on a master/detail form

    master/detail forms seem to lose the rowid after saving, if the unique identifier is set to ROWID
    to reproduce the problem:
    1) create a master detail form on DEPT/EMP
    -- choose 'Managed by Database (ROWID)' on the 'Define Primary Key' page.
    -- do not include master row navigation (but i don't think this matters)
    -- choose 'Edit detail as tabular form on same page' on the 'Choose Layout' page
    -- include the master report
    2) on the master/detail page, change the conditional branch that returns to the master report page
    -- the normal condition for this branch is request in SAVE,DELETE,CREATE
    -- change it to request in DELETE,CREATE
    3) run the form and save a change
    -- saves fine, session shows the ROWID value is still set
    4) save a second change
    -- change does not save, form reverts to Create mode
    this problem does not occur when using the primary key columns instead of rowid
    see http://apex.oracle.com/pls/apex/f?p=60813:7 for the ROWID version
    see http://apex.oracle.com/pls/apex/f?p=60813:11 for the PK column version

    Hi Saverio,
    Bug *13563808* has been logged to track the reported issue, and a fix will be made available in a future release. Just to clarify, this issue is only arising when the APEX-generated Master-Detail is modified post-generation, so for users who have not modified their Master-Details using ROWID to manage their DML processes, they should not experience this issue.
    In relation to my workaround, my suggestion works in my test environment, which I verified before posting the initial suggestion. Please note that the 'Reset Page' process is, by default, conditional on the "Delete" button being pressed. If you have made further modifications to your Master-Detail page, then this might explain why you're seeing different behaviour to me. You might using the "Debug" option on the Developer Toolbar useful. Viewing the debug information should help you to decipher what's going on/wrong on your page. If you still can't resolve the issue, then the safest option might be to revert the page back to it's original state, meaning the user navigates back to the Report page upon submitting changes to the Master-Detail Form page.
    Regards,
    Hilary

Maybe you are looking for

  • Error while starting Webcenter Sites JSK 11.1.1.8

    Hi, I am getting the below error when I start the Webcenter sites JumpstartKit (11.1.1.8). Kindly help with the solution. Feb 19, 2015 6:53:57 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library whic

  • Earmarked funds - Express document "Update was terminated" error

    Hi, When i create a contract(RECN), a earmarked funds document getting created and it updates the table KBLK with single primary key BELNR. I see in the Tcode OK60, the number range assinged is '05' - 0200000000 to 0299999999. KBLK table has entries

  • ConnectionManager::invoke::Failed to find service connection url.

    Please fix this Apple, I can't sign in or make purchases. I have tried the following... Delete cache.db Restart iMac Default security settings Firewall is off Little Snitch is not installed Thanks

  • Mail freezes when updating large RSS feed boxes

    This is something I encountered and how I have formulated a work around. I have discovered that Mail will freeze when updating large RSS feed boxes. A little history. After discovery RSS and how they work, I began building a collection of feeds. They

  • Problems installing CS 1.1

    I am trying to install CreativeSuite Premium on a new computer.  I've called customer service, and received some help, but am at a point where they say they cannot help me. My husband purchased CS Premium in a regular store about 4-5 years ago.  We i