DELETE THE TABLE (...) does not

Hello

I want to remove some lines from a collection (nested table), but the following statement does not work

I'm in vaAtcGroups.first... vaAtcGroups.last * DELETE OF TABLE (tmp_drugTable) WHERE v2DrugATC LIKE vaAtcGroups (i) | '%';*
end loop;

the table variable is declared and I use it before, just remove it won't work (at least according to this). I always get the error message PL/SQL: ORA-00903: invalid table namepointing to tmp_drugTable.

There must be a way to do this, I can't see it :)
Maybe someone else can

Thank you

maschlegel wrote:
Thanks for the explanation.

You can put your data into a global temporary table and then work with SQL. Data will exist only for the duration of the session or until you do one commit (depending on the way in which you set the TWG).

That's exactly what I look at you now :)
I tried to put the following in my inside, but he dislikes the syntax

(DrugTable) CREATE TABLE TEMPORARY global
nDrugId number (11.0).
v2DrugUnit varchar2 (50).
v2DrugIntervalNumber varchar2 (2000).
nDrugIntervalId number (11.0).
v2DrugName varchar2 (50).
v2DrugATC varchar2 (10)
) ON COMMIT DELETE ROWS.

I tried in the BLOCK IS and after BEGIN, but it gives me the error 'encoutered symbol create when waiting for the next' and then nothing?

In General, a global temporary Table, you create a time and simply leave it is there to be used as and when you need. that is, you don't need to create dynamically at run time. If you really really really issue when executing DDL statements then you must use the EXECUTE IMMEDIATE to do, because cannot you issue directly code DML, PL/SQL DDL only may be issued directly.

Tags: Database

Similar Questions

  • a key for the table does not exist in the table

    Hi guys,.

    I imported several tables of physical layer in the administration tool. So, I want to do new foreign key between tables join in the physical schema.
    Required fields for posting a link between these tables are set up. When I press the ok button, an error message is displayed:
    "a key corresponding to the table does not exist in the table blablabla. You want to create a? »

    In fact, what is this error? I don't have all the idea about it. The number of the type of the fields is the same, the names are also the same. I think that he should not have problems to make the new foreign key. But why is it happening?

    Thank you

    Hello

    It is the primary key of the first table. You might not have set this column as the primary key of this table at the level of the db.

    Thank you
    Imtiaz.

  • 'Lines' of the table does not automatically extend as added content?

    This is a table of Storyboard, built with a simple table.  Three columns: one for the images, one as a spacer, a text.

    I did the storyboard to the origin in the Pages, and then converted in Word to work with a partner, now converted to Pages yet.  It seems to be OK except for one thing:

    Before, when I would write in the text of the text column... the line would extend automatically as the text was written, at least in the size of a page.

    Now, I think lines are somehow "locked" and does not (at least one page), extend this text and images, are "hiding" because the line is not normally develop as she would have.

    Is there some click preferably a place that keeps my lines to a constant size, any content is in every cell?

    Or maybe it's a corruption caused by going to Word and back?

    All ears,

    Ben

    V4.3 Pages ' 09, or permit Pages v5.6.2 splitting a line beyond the limits of the page, so limit the content of text in a cell a to a single page. I just copy and paste a page full of text and he dropped in the first row, cell 3. It is automatically extended to the bottom of the page and not details. There is no hidden settings in Pages that will be substituted for this limitation.

  • If else check box in the table does not properly

    I'm new to this forum and hope someone can help me with that.

    I created a dynamic array and I have 2 types of boxes.

    One is a check box for the individual lines that fills a value in a cell. Otherwise, it will be zero.

    Another is a master checkbox that activates the check all lines and value box

    Problem statement:

    When I click on the master check box, every individual is selected. However, the value of the cell is incorrect. Value of all the rows is based on the value of the first row.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    Table.Row1 [*]. Cell4 = table.row1 [*]. Cell2;

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    Table.Row1 [*]. Cell4 = 0;

    endif

    Check box for the individual line (using the formcal in click):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Otherwise, I tried to turn the master value of the box fill off & put a validation in each line instead. This time it works! but it kept prompting a message for each rows whenever I unchecked the box: "the value of Checkbox1 is not valid.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    endif

    Check box for the individual line (using the formcal to validate the event):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Appreciate all the help that I am at a loss as to why the tis error occurs and how to solve it.

    Thank you!

    Hello world

    I managed to find a solution to my problem. I write for the benefit of any1 facing the similar problem.

    I changed formcal to Javascript.

    Master box (Click event):

    vRows var = Table._Row1.count;

    for (var i = 0; i)

    {

    If (this.) RawValue is "1")

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "1";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell2.RawValue;

    }

    on the other

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "0";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = 0;

    }

    }

    Another point to note, it only works for the table of data binding. If the row in the table has been created original, somehow the Table._Row1.count does not work. It detects that the value = 1.

    Thanks to all who tried to help me!

  • the tables does not work in flash lite

    I couldn't get a multidimensional array to work in flash lite, then tried a regular table - is not no longer works.

    Copy the following code works:

    var myVar;
    myVar = 5;
    answer_true_button_btn.onPress = function() {}
    points_txt. Text = String (myVar);
    };

    This code does not work:

    var myVar:Array = new Array (5);
    myVar [0] = 5;
    answer_true_button_btn.onPress = function() {}
    points_txt. Text = String (myVar [0]);
    };

    Now do multidimensional arrays.

    I tried in Flash Lite 2 and 2.1.

    Here's the problem: I had 1 selected ActionScript (even if Flash Lite 2.1 has been selected in the box 'Version') in the publication settings. Apparently, you write in AS 1 or 2 AS and publish in Flash Lite x.x.

    Flash Lite 1.1 does not support tables, with the exception of the latest version.

  • color of the table does not reset

    My table (TABLE of SUM AVG) is supposed to show entries below zero in red. He has a little problem. The first time that it works, but the second time that the color of the text will not return to black when I run again.

    He remembers the entries that were red on front. Based on my wiring below, the second time I run it, it must set the background color to the light yellow and black text, then make loops for.

    BTW, I also used a sequence flat to force this order, but that did not help.

    Hi murchak,

    What can be seen in your picture you

    -only value a "yellow light" cell background: ActiveCell = (2, 2)

    -and then you assign the first 3 lines "light green" background

    -then you set some cells, according to their value to red. (Btw. There is a special ' ")<0" function="" in="" the="" comparison="">

    There is no place where set you a black background for all cells.

    Maybe you should try ActiveCell (-2; -2) instead?

  • Insert in the table, the table does not grow

    I'm currently learning Labview 2009.

    Problem:

    I have a chart 2D with 3 columns I initialize outside my main loop.  In my loop, I want to add new lines in the table as I collect the data.  I tried to use "Insert into array" but can't seem to get new lines to add.

    I've attached an example VI to show you what I'm doing.  Basically, I initialize the table outside the loop to 0 rows, 3 columns.  Inside the loop, I look at the number of rows found and then try to insert a 1 d of the 3 column table.

    I am an old VS / encoder VB trying to adapt some skills to Labview.

    The purpose of this table is also to collect temperatures over a period of time and to determine the overall variation over a given period.  Additional ideas would be welcome.

    You can use a shift register and build the table. See attached example

  • How to generate a value of 0 if the table does not value contain?

    Hello

    I have a nice select gives me these results:
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:02 63.4 02/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:03 73.2 03/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:04 78.6 04/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:05 98.8 05/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:06 2008-06-30.4
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:07 23.8 07/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:08 70.8 08/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:09 14 2008-09
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:10 60.4 10/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008

    You see, the month 12 is missing, because no data exists in the table. OK, that's normal.

    But I want to display the result 0 even if nothing in the table for the month 12. The result would be:
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
    etc...
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:12 0 2008-11

    I know that I have to generate a list of values for each month and join them.
    select add_months(to_date('01'||:P2_DATE_DEBUT, 'mm/yyyy'), level-1) dt from dual connect by level <= 12
    Could you please help me this?

    It's nice select I already have.
    SELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:' 
           || TO_CHAR(TRUNC(date1, 'MM'), 'MM') LINK, 
           To_CHAR(TRUNC(DATE1, 'MM'), 'MM/YYYY') valeur, 
           sum(valeur) "Cumul"
           FROM PL_MF_JOUR
    WHERE  cle = :P2_DEPT
    AND    DATE1
    BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
    AND     to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS') +364
    GROUP BY TRUNC(DATE1, 'MM')
    ORDER BY TRUNC(DATE1, 'MM')
    Kind regards

    Christian

    PS: your help is very appreciated every time, thank you.

    You need to generate your calendar of 12 months and then left outer join with it.

    Something like:

    WITH dts as (select to_date('01/'to_char(rownum,'fm99')||'/'||:P2_DATE_DEBUT,'DD/MM/YYYY') as dt
                 from dual connect by rownum <= 12)
    SELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:'
           || TO_CHAR(dt, 'MM') LINK,
           TO_CHAR(dt, 'MM/YYYY') valeur,
           sum(valeur) "Cumul"
    FROM dts LEFT OUTER JOIN PL_MF_JOUR ON (dt = TRUNC(DATE1,'MM')
                                       AND cle = :P2_DEPT
                                       AND DATE1
                                       BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
                                       AND     to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS')+364
                                       )
    GROUP BY dt
    ORDER BY dt
    

    NB. Untested (obviously)

  • Insert in the table does not

    My version of LV: 8.6 developer suite x 86

    Hi all

    It seems the "insert table" according to VI would not work when one or more entry points are empty.  Is there a way to get around this?  From a conceptual point of view, it's a very simple thing that I don't know how people OR might have missed it.  There must be a way around this problem. Any suggestion?

    Right click the Array function to build and select CONCATENATE entries option.

  • Purge the Cache of the Table does not not as expected

    Hello gurus,
    We use OBIEE 10.1.3.3.1.
    We need to purge the cache Table.
    So I use the ODBC function:

    Call SAPurgeCacheByTable ('Database_name', 'Catalogue', 'Plan', 'Physical Table');

    so, when I run the present from invite cmd:
    nqcmd d AnalyticsWeb u username - password - Pali C:\OracleBI\Server\Bin\clear_cache.txt
    I received the message of successful result as below:

    [59118] SAPurgeCacheByTable operation succeeded!
    number of lines 1
    Processed requests 1

    But the thing is Local cache and web cache is not serving (.) TBL files)

    Please help solve this problem.

    Thank you
    Kanna

    Hello

    the problem is that OBIEE 10.1.3.4.0 ha a bug, see the support document SAPurgeCacheByTable and SAPurgeCacheByDatabase not working do not [787797.1 ID].

    The bug is logged as a Bug 6906535 and it resolved in the next version which is 11.1.

    Currently, there is no difficulty for 10.1.3.4.

    Support proposes to use SAPurgeAllCache() to work around the problem.

    I hope it helps.

    Kind regards
    Gianluca Ancarani

  • &lt; caption align = "left" &gt; for the table does not not in the browser

    Hello

    I use Dreamweaver CS6.  I placed two tables on my page and am using < caption align = "left" > for left frame captions.  Sounds good in Design view, but when I view the page in a browser, the legends are always centered.  I've tested this, I.E. 9 and Chrome, which are the only two browsers that I installed, and the result is the same in both.

    Any ideas?  I'm fairly new to Dreamweaver and took basic Dreamweaver and HTML/CSS courses.  I searched online help and could find nothing about it.

    TIA!

    Denise

    Validate your code and fix the errors reported.  Code errors are responsible for 98% of the browser rendering problems.

    Code Validation tools

    ------------------------------------

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    Align is deprecated code.  Use CSS to style your captions.  Styles inline illustrated here by opportunism.  Ideally, you will place the CSS in your external stylesheet.

    style = "" text-align: left ">"

    Nancy O.

  • Contents of the table does not align

    I set up a table of three columns to display captions and photos of products.  For some reason any alignment of the content in each cell is erratic. Some display a few pixels of higher than others in the line.  How can I fix it?  You can see the problem in http://www.kinggraphics.net/ronfisher.com/Accessories/AccViewAll.html

    Strange that we were served a white page with this incorrect url.

    In any case, to align it better, add this to your css:

    #mainContent table tr td {vertical-align: top}

    --

    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • Strange behavior with Report Generation Toolkit. Table does not table.

    We use a Word 2003 (.doc) document as a template for a summary of the report.  It works fine on the development PC.  It fills the fields in the document and fills the chart correctly, as shown in the picture below.

    However, he cannot even on another station.  Although the 2D table is identical and so is the software to investigate the matter, the table does not get filled correctly.  I studied using Word 2010 (.docx) as a model, with the same results.

    I was not able to understand what is different between stations 2 and why it does not work on the 2nd station.  I googled similar questions on the Web site of NOR and was only this article in the knowledge base concerning the new lines in the cell, which is not my case.

    That's what I have on the 2nd machine:

    The table that is sent to the table contains the appropriate data :

    I just found out this is a known bug, which obviously has not yet been resolved (finally... at least until LV2012SP1).

    See these threads:

    http://forums.NI.com/T5/LabVIEW/problem-with-append-table-and-Word-2010/TD-p/1268246

    and

    http://forums.NI.com/T5/LabVIEW/report-generation-MS-Word-table-bug/m-p/1605170

    I'll try the workarounds suggested and report back...

  • I deleted the boot camp trying to resize the hard drive on my mac pro book. now, the computer does not start without a bootable device, which I don't have, and any download must be on a windows machine. Can anyone help

    I deleted the boot camp trying to resize the hard drive on my mac pro book. now, the computer does not start without a bootable device, which I don't have, and any download must be on a windows machine. Can anyone help

    1. did you remove Bootcamp using disk utility?

    2 have you tried local restore or recovery of the Internet? - OS X: on OS X Recovery - Apple Support . Mac with built-in optical drives may need 'Gray' disks to boot the system.

  • delete and close the space does not work

    When I delete a clip does not close the gap.  I held the CTRL SHIFT once and now the ripple effect seems to be disabled.

    Michael

    Michael,

    The most common reason that the gaps close, is that there is an Audio Clip that "covers" the gap, or even video that does.

    Is the case in your case?

    Good luck

    Hunt

  • LOV inside the inner table does not!

    Hello

    I have a Master Advanced Table and an internal Table (more advanced) retail. (I know it's a performance problem, but..)  :()

    I have a number of customer LOV in internal table. But when I select a row in the LOV I don't get the value returned to my return of goods. Page popup LOV just stay there without responding to any request post.

    I'm on 11.5.10 RUP4.

    Thank you
    Wine

    In my view, that this feature is not supported as indicated in the dev guide:

    "The inner table does not support LOVs. You must use a different user interface.

Maybe you are looking for