How to store results of the select query in the tables.

I created a variable varray type and now want to assign some data of output of the select query in pl/SQL, as well as in reports 6i.

You are in the wrong forum (this is for problems with the SQL Developer tool). You were the one where you have published first on the right, but not to reuse independent threads as you did.

Kind regards
K.

Tags: Database

Similar Questions

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • How to return results to the job application?

    Hello

    The application that I must be able to perform procedures and works asynchronously (run a stored procedure and do not wait the results.) A different thread will show the results at a later date).

    What I came up with is a mechanism that distributes the jobs by running the desired procedures and signals the application thread waiting on a performance of the work by using dbms_alert.signal. The application in his spare time reads the results of the table and then employment has created and he falls when it is done.

    The problem is I have many different methods, each do very different logic and you end up with another result/slider/record-set (different columns, different values), I need to be able to read the application after receiving the signal.

    I expect a statement as if by magic 'create table from sys_refcursor', but there seems to be no such thing (disappointment).
    I have read many things on the table and features in the pipeline, but the problem is that for each procedure, I set a different type for the return clause, and I was expecting something more 'generic '. I don't want the procedures to make the table of results to create themselves (unless it's my only option)

    You have a way to turn a sys_refcursor in a table?
    I am that face the wrong way?

    Any help would be appreciated!
    Thank you.
    -Mor

    Pyrocks wrote:

    I have to move the cursor to return - I need to return the result.

    How to get to this result? With the help of a select SQL statement.

    What does Oracle with this SQL statement? Analyze and store them as a cursor.

    All SQLs are analyzed as cursors.

    Why not create a table (temporary use), called "temp_result_n" where n is a number.

    Not a good idea to dynamically create tables - that need to use dynamic SQL. And code management and control to clean later.

    It's ugly. The process will fail and temporary tables created not get cleaned. Dynamic SQL can hit any runtime errors. Etc.

    This is a much more robust approach to use a static data model - one that does not punish dynamic to use code.

    Can you please explain why your way is better than using tables?

    I'm all for the use of the tables. The basic concept I've tried to explain, is that the background process must happen something to the process parent to tell him how and where to get the results, he has created.

    The more flexible method would be to pass a SQL statement - as the background process will know exactly what the parent needs to access these results run SQL.

    The parent gets this SQL statement (with bind variable), run it (which creates a slider) and process the results.

    Another approach is more static - have the parent tell the background process in which table to create its results. But it is less flexible.

    Another approach, you can use use the primary key of the data entity dealing with the background has to process. For example, the caller can give the background process an invoice number and when you said it's done, the appellant knows what Bill has been processed.

    So, there are a number of ways that the parent process and the child process of background can pass data between them. The most generic of these would be for the child to pass a SQL Select to the parent of the parent to use to access the result set created by the child.

    But it will be a too complex approach if the parent simply needs to create children for an invoice and save the invoice number with the id of child's work. When the parent is the signal that the child is done, it looks simply invoice number that has now been addressed by the child.

    There is no single best approach for this. It depends on your needs and what parents and children must do and how this approach to parallel processing is to increase the performance and scalability to provide.

    BTW,
    I would be very grateful if you could tell me how to translate DBMS_SQL. Column col_type DESC_REC in actual data types (1 = varchar2, 12 = date - where can I find the rest?)

    Take a look at the table in Pro * PL/1 to the precompilateurs Oracle® supplement Guide guide. The same table is probably repeated n other pre-compiler and OIC guides too.

  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

  • Please can someone help me on how toedit calculation result to the point

    Please can someone help me on how toedit calculation result to the point

    Can you post an example page upward on the hosted site for Oracle?  Apex. Oracle.com (you need a workspace).

    So to repeat what you have posted:

    You have a page with 3 items P1_N1, P1_N2 and P1_SOM...  You want to P1_N1 and P1_N2 to be text boxes that accept input, and when you enter the values you want the sum of these values to be stored in P1_SOM, correct?

    Take a look at this page: http://glassfish1.revion.com/apex/f?p=227:1:12047078745989:

    I will explain further if you think you want it...  Use any value for a connection. Enter a number in N1 and click in the field of N2, the display option takes the sum of the two numbers when you let one of the fields...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • How to hide data in the table?

    Hello

    I'm using LabWindows/CVI 8.5 and I have a question about the use of tables.

    The problem is this: in my table, I have 8 columns.  I have columns of chains, whole, and a column of buttons - so there is a button on each line.  I have some information about each line I don't want to display in the table, however, I would like this information to be associated with other information on this line.  Each line represents a high lack of information from a log file - level when the user clicks on the button, I want to be able to go to the specified file and extract more detailed information about this flaw and display it on another Panel.  "Hidden" information are (1) file identification number, and (2) seek-card value... or 2 integers.  My problem is how to have these 2 pieces of information available for each line, but they have to be seen by the user.

    There are two ways I see this, but I did not really understand how to make no more.

    (1) I could have each key also contain a string that includes the 2 pieces of information (for example, "32:125567"), so that when I click the button, the application can retrieve the string value of the key, analyse and extract integer values from two...  I've done this work - BUT the button actually displays the string containing the numbers!  Is there a way to "hide" this information contained in the button?

    (2) alternative... Is it possible to include columns 'hidden' in a table that can contain information - but these columns are not displayed.  For example, my table is currently 8 visible columns.  Could I somehow add a column for file identification number and a column for search-map and have these columns be hidden from view (but still accessible to the application)?  I don't see a way to do this, but I'm still very inexperienced using tables in L/CVI.

    Or you guys maybe you know a better way to do...

    Thank you very much

    Harv

    Regarding your question 2, although it is probably replaced by my previous post, don't forget that a table can have more columns than those displayed on the screen.

    You can configure your table to have 10 columns, but only 8 shown (button ' size/scroll options' in table in the IUR editor properties); given that you can hide the horizontal scroll bar, even in this case you can store information in the table that are not accessible to the user.

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How do I top align the table on the Web page to the top of the browser?

    If you look at www.colonialstock.com, you will see that the Web page was made in a tabular format.  How do I best align the table, then the gray space above the table is removed?

    Add this to your body tag...

    LeftMargin = "0" marginheight = "0" marginWidth = "0" topmargin = "0".

  • How to remove results in the area of research of a library or a folder

    Hi, Im having trouble looking to know how to delete the search results in the search box located in a folder or library. Its got to a point where the search field gets clumped with unesscessary words and it bothers me strangely nothing have a box that is completely clean and fresh.

    Here is a picture of this library search box.

    http://i1191.Photobucket.com/albums/z472/llama-lad/Problem_zps6071b426.PNG

    Something like that is stored in the Windows registry.  My notes:

    How to disable search history and suggestions in the search box:

    When you enter search terms in a search box of Windows 7, they are stored in the Windows registry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery and appear as suggestions for further research.  To remove the terms stored, remove the whole part of the registry.  To prevent the storage of search terms, go to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer, right-click on Explorer, right-click again and click on DWORD (32-bit) value, type DisableSearchBoxSuggestions and press ENTER.  DoubleClick DisableSearchBoxSuggestion, type 1 for the value, and then click OK.

    May I ask how go to? : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery

    Never mind! I found and authorized. Thank you

    Open Registry Editor.
    1. type regedit in the start search box and press on enter
    2. navigate to the following registry entry:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery

    3. delete the MRUListEx on the right by clicking right on pane and selecting delete.
    4. the close Registry Editor.

    Open Windows explore, test and see if the search results are deleted.

    You can choose to permanently disable lists Windows most recently used (MRU) if group policy is enabled in your edition of Windows. Group Policy Editor is only available in the professional edition, full and Windows 7 Enterprise edition. You will not have the Publisher of local group policy available in Windows 7 Starter and Home Premium editions.

    Open Group Policy Editor:

    1. click on start and in the search box type gpedit.msc
    2. now the Group Policy Editor opens. In it go to User Configuration > administrative templates > Windows components > Windows Explorer
    3. in the control panel under the gaze of Windows Explorer to disable the display of recent search entries in the search box on Windows Explorer
    4. right click and select Edit.
    5. use not configured or disabled to keep a history of search enabled.
    6. use will disable the search history.
    7 close the Group Policy Editor.

  • How to insert data into the table of plain text stored as a CLOB in another table

    Hi people,

    Maybe it's an easy question for someone who is more frequently used files and CLOB.

    I have a table that stores text files in the CLOB column. Files text includes some basic data that I want to load in the other - a text line = a new insert for me. Is there a "trick" how to do it effectively?

    Here is my model:

    Table OS_IMPORT_DOCS, stores the complete files as CLOB
    SQL> desc OS_IMPORT_DOCS
    Name          Type           Nullable Default Comments 
    ------------- -------------- -------- ------- -------- 
    OBJECT_ID     NUMBER                                   
    DATUM_ZMENY   DATE                    sysdate          
    FILE_PATH     VARCHAR2(4000) Y                         
    FILE_NAME     VARCHAR2(4000) Y                         
    FILE_SIZE     NUMBER         Y                         
    LAST_MODIFIED DATE           Y                         
    DOCUMENT      CLOB           Y                         
    STATUS        VARCHAR2(15)   Y        'NEW'  
    Sample data from OS_IMPORT_DOCS
    SQL> select *
      2    from os_import_docs d
      3  order by d.last_modified desc
      4  ;
     
     OBJECT_ID DATUM_ZMENY FILE_PATH                      FILE_NAME       FILE_SIZE  LAST_MODIFIED DOCUMENT    STATUS
    ---------- ----------- ------------------------------ --------------- ---------- ------------- ----------- ---------------
       1815043 13.8.2012 1 d:\data\C120813.DAT            C120813.DAT          16800 13.8.2012 16: <<CLOB>>    NEW
       1815042 13.8.2012 1 d:\data\C120812.DAT            C120812.DAT           3600 12.8.2012 22: <<CLOB>>    NEW
       1815041 13.8.2012 1 d:\data\C120811.DAT            C120811.DAT           1800 11.8.2012 13: <<CLOB>>    NEW
    Example of file CLOB - stored text data (select d.document from os_import_docs d where d.object_id = 1815042 ;)
    061053120820120000AGT000002Osoby                   0000000042301000000017210632
    062322120820120000AGT000002Osoby                   0000000012301000000017197566
    063526120820120001AGT000002Osoby                   0000000012301000000017197566
    064234120820120001AGT000002Osoby                   0000000103301000000162218777
    Above the example text includes "columns" in plain text:
    timestamp - 1-14, SSMIHH24DDMMYYYY position format
    flag - post 15-18
    company code - position 19-27
    etc...

    How can I query data stored within the OS_IMPORT_DOCS. The DOCUMENT column, divide it into columns and insert into another table?
    I have to read this method of 'online' file?


    Thank you very much
    Tomas

    For the first three columns:

    SQL> create type TRecord is object (
      2    ts           timestamp
      3  , flag         varchar2(4)
      4  , company_code varchar2(9)
      5  );
      6  /
    
    Type created
    
    SQL>
    SQL> create type TRecordTable is table of TRecord;
      2  /
    
    Type created
    
    SQL>
    SQL> create or replace function parse_clob (p_doc in clob)
      2  return TRecordTable pipelined
      3  is
      4    lf      number;
      5    eol     varchar2(2) := chr(10);
      6    eollen  number := length(eol);
      7    line    varchar2(32767);
      8    offs    number := 1;
      9  begin
     10    loop
     11      lf := dbms_lob.instr(p_doc, eol, offs);
     12      if lf != 0 then
     13        line := dbms_lob.substr(p_doc, lf - offs + 1 - eollen, offs);
     14        offs := lf + eollen;
     15      else
     16        line := dbms_lob.substr(p_doc, dbms_lob.getlength(p_doc) - offs + 1, offs);
     17      end if;
     18      pipe row (
     19        TRecord(
     20          to_timestamp(substr(line, 1, 14), 'HH24MISSDDMMYYYY')
     21        , substr(line, 15, 4)
     22        , substr(line, 19, 9)
     23        )
     24      );
     25      exit when lf = 0;
     26    end loop;
     27  end;
     28  /
    
    Function created
    
    SQL>
    SQL> select t.*
      2  from os_import_docs d
      3     , table(parse_clob(d.document)) t
      4  where d.object_id = 1815042;
    
    TS                                     FLAG COMPANY_CODE
    -------------------------------------- ---- ------------
    12/08/12 06:10:53,000000               0000 AGT000002
    12/08/12 06:23:22,000000               0000 AGT000002
    12/08/12 06:35:26,000000               0001 AGT000002
    12/08/12 06:42:34,000000               0001 AGT000002
     
    
  • How to find duplicates in the table

    I have a table with 3 columns

    name of the table - used

    empcode firstname lastname
    XYZ 123 pk
    yzz 456 pk
    101 kkk jk


    ALTER TABLE employee
    ADD (CONSTRAINT PRIMARY KEY employee_PK
    (empcode, firstname, lastname))


    all the three columns are as key to porimary, we are migrating the data, there are problems with the data as the cobination of all three, resulting in duplicate, in the last column is supposed to be duplicates but first two columns will not have the duplicate and a complete line of the table (combination have no duplicates)

    a query need to find duplicates to validate the whole lines

    (B-)

    select empcode,firstname,lastname,count(*)
    from employee
    group by empcode,firstname,lastname
    having count(*)>1;
    
  • How to share data in the tables ' User_ * ' with another schema

    I want to share the data in the table WHERE USER_SEGMENTS with another schema. If I create a view and grant select on the view, when the other schema queries the view data are identical to themselves querying the SYS.user_segments table directly.
    create view sys_user_segments as select * from sys.user_segments;
    grant select on sys_user_segments to A;
    My guess is that the SYS.user_segments table is a view based on the current user.

    Is there a way to share such data without creating a copy of the table?

    Oracle: 10g

    Thank you

    If the ADMINISTRATOR is concerned about B access to DBA_SEGMENTS (or by creating DBA_SEGMENTS views that belongs to a user who has access on top and then grant access to this view of B), it seems pretty crazy allow that kind of database connection.

    If you create a database link belonged to B that connects to A, B is, in substance, given any privilege that has exercises. But it is done in a very, very dark which will no doubt be neglected in the future when someone gets a check. He'll be sitting here to wait that someone (accidentally or intentionally) Decides to exploit the security hole and do something that is causing a problem (by removing all data from a table, grabbing all the sensitive data in a table, etc.). Risks of this almost certainly far, far* far * outweigh the risks of even leaving B to obtain direct access to DBA_SEGMENTS.

    Justin

  • output of Get-store data in the table (datagrid)

    Hello

    I'm trying to get the output of get-store data in a table (datagrid).

    Code:

    Function Get-data warehouses
    {
    $array = new System.Collections.ArrayList object
    $Script: GetDatastore = Get-Datastore
    $array. AddRange ($GetDatastore)
    $dataGrid1.DataSource = $array
    $form1.refresh)
    }

    error:

    Das Argument '0' mit dem Wert "local_datastore01" as "AddRange' nicht den Typ"System.Collections.ICollection"konvertiert werden kann:" Der Wert "local_datastore01" vom Typ VMware.VimAutomation.Cl «»»
    ient20. DatastoreImpl' nicht den Typ "System.Collections.ICollection" konvertiert werden kann. »
    -snip-
    + $array. AddRange < < < < ($GetDatastore)
    + CategoryInfo: NotSpecified: (:)) [], MethodException)
    + FullyQualifiedErrorId: MethodArgumentConversionInvalidCastArgument

    Comment:

    If I replace the query data get store-get - VM the script works great!

    What's wrong? any suggestions?

    Many thanks and greetings

    Hello

    This particular Get-Datastore call returns a single object, which cannot be converted to the ICollection. But you can do something like this:

    If ($GetDatastore-[table]) {}

    $array. AddRange ($GetDatastore)

    } else {}

    $array. Add ($GetDatastore)

    }

    It will manage both situations - when you get the data object store or table of data warehouses.

    Vitali

    Team PowerCLI

  • How to load data into the table of correspondence in OIM 11 g

    Hello
    I have a lot of data that must be loaded into the table of choice as Codekey and decode. How can I load the data in bulk instead of manually via console Design?

    Is it possible to do? No API IOM or any what SQL query

    Kind regards
    JS

    Here's what you need to get.

    psLookupCode - search name,
    psValue - Code key
    psDescriptivevalue - DecodeKey

    The rest can be empty.

    addLookupValue

    void addLookupValue (java.lang.String psLookupCode,
    java.lang.String psValue,
    java.lang.String psDescriptiveValue,
    java.lang.String psLanguage,
    java.lang.String psCountry)
    throws Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcInvalidLookupException,
    Thor.API.Exceptions.tcInvalidValueException,
    tcAPIException adds a new entry for the specified search

    Parameters:
    psLookupCode - the Code for the definition of research
    psValue - the value that will be stored in the database
    psDescriptiveValue - a descriptive version of the value to be added
    psLanguage - the language for the added entry. Leave blank to accept the default value (en)
    psCountry - country for the specified entry. Leave blank to accept the default (US)

    Throws: tcAPIException tcInvalidLookupException - thrown if the search Code is no tcInvalidValueException - thrown if the value cannot be added to the list of choices (because it's a double, etc.)

    M

  • How to remove columns from the table on the master 1-0?

    I have an array of 96 columns with strings. I also have the array of int 96-elemets (mask) with 1 and 0.

    What I want to do is to is to remove (or hide - but I read that it is not possible) all the columns with index corresponding to 0 in the mask table.

    example:

    columns in the table

    1 2 3 4 5

    mask

    0 1 0 0 1

    I want to remove the columns 1, 3 and 4 and leave only 2 and 5 in my table.

    How can I do?

    If I create loop for with i as the index of the column, when I do DeleteTableColumns() columns number decreases, and I get an error of range out of

    Or do I have an option to hide the unnecessary columns (not set their width to 1, it's very ugly-looking)?

    Please help me (())

    Hello rovnyart!

    1. removal of columns in the table:

    I suspect that the reason why you get the out-of-range error is due to fact that in your loop, you delete the columns in the table, you'll eventually end up by referring to a column that no longer exists, because the other columns before it have been deleted. While you remove each column of your table in the loop for example, the column index number will move, because you deleted the other columns in front of her.

    To resolve this, even if you delete a column in your loop, make sure that you take also into account that the index of the column is moved because of the removed columns.

    2 hide columns in table:

    You can use the ATTR_COLUMN_VISIBLE attribute to hide columns in the table:

    http://forums.NI.com/T5/LabWindows-CVI-idea-exchange/add-attr-column-visible-attribute-for-table-Col...

    http://zone.NI.com/reference/en-XX/help/370051Y-01/CVI/uiref/cviattrcolumnvisible_column/

    3 alternatives:

    Note that another alternative would also use a tree instead, control as the tree control also supports the hidable columns:

    http://forums.NI.com/T5/LabWindows-CVI/table-hide-column/TD-p/569773

    Best regards!

    -Johannes

Maybe you are looking for

  • KB890830 repeatly updates

    The update of the malicious software removal tool (June 2012) repeatly application to be installed via Windows Update. It seems to be completed successfully, but always returns... I tried to rename the folder software original no success yet the prob

  • 2620 printer all in one

    First time using this site - thank you. Only problem that I can not find an answer is to know how to set time and date on my backlite - print when I send a fax. Thanks for your help, David

  • Music jumps between photos in movie maker.

    I am creating a movie in Windows Movie Maker with audio, photos and video clips. I have a background song playing and the passage of video clips smoothly, but the song doesn't know that the transitions between the images. Any ideas on how to fix?

  • Sorry, no error messages remembered. Hey I'm old. Crash dump blue screen. Vista Home Premium

    I uninstalled many programs. Some I knew, some I have not. I was OK for 2 days and then a program told me that I had to download Adobe Flash player. CRASH, BSOD. I uninstalled and everything OK again. MS found no compatibility problems. Anyone know o

  • Illumination of icon no. blackBerry Smartphones

    The Contacts and calendar icons are not lit on my desk of storm. What have I done?