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.

Tags: Database

Similar Questions

  • Procedure to export the result of the query to an excel or csv

    Hi all

    I have two identical paintings

    EMP_TEST OF THE EMP

    ID ID NAME

    1     SAM                      1        SAM

    2 JOHN 2 ROCK

    3 3 STEVE BRAND

    I need to combine the result under the query and intent to export data to excel using a procedure

    my query is

    Select 'EMP_ID', E1. EMP_ID, AND. EMP_ID from emp E1,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    UNION

    Select "EMP_NAME", E1. EMP_NAME, AND. Emp E1 EMP_NAME,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    but I get this error message

    ORA-01790: expression must have same type of corresponding data

    EMP_ID is a number and EMP_NAME is of type varchar.

    I need any idea or suggestion on sub queries.

    (1) I have to combine the result set in a single query.

    (2) I need to write the procedure that will export the result of the query to an excel or csv.

    Thank you.

    As PR has said, there are ways that have already been explained in this forum to write in external files. For your query condition, try this.

    SELECT CASE WHEN (REGEXP_LIKE (T1.ID,'[^ [: alpha:]] "")) THEN 'EMP_ID '.

    ELSE "EMP_NAME' END AS COL_NAME.

    T1.ID,

    T2.ID

    DE)

    SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    FROM EMP

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    FROM EMP)) T1.

    (SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,)

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    OF EMP_TEST

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    OF EMP_TEST)) T2

    WHERE T1. RN = T2. RN;

    OUTPUT:

    COLUMN-NAME ID ID
    --------  ---------------
    1 1 EMP_ID
    2 2 EMP_ID
    3 3 EMP_ID
    SAM EMP_NAME MARK
    EMP_NAME JOHN JOHN
    EMP_NAME STEVE DARREN

    6 selected lines.

  • ORA-06504: PL/SQL: return variables of the game results or the query types do not match

    Hello!

    I have a simple object type and a proecdure in which I am trying to use it to insert into another table

    -object

    CREATE ORREPLACETYPEmt_mtg ASOBJECT

    (

    ACOL NUMBER ,

    BCOL NVARCHAR2 (100)

    );

    CREATE ORREPLACETYPEREF_MTG ASTABLEOFMt_MTG ;

    -same structure as the use of sampletbl target table in the cursor query

    create table tbl_MT_MTG

    (

    ACOL NUMBER ,

    BCOL NVARCHAR2 (100)

    );

    -procedure

    CREATE ORREPLACEINTERIORTEST_PROCEDURE1

    AS

    ref_cur sys_refcursor ;

    REFR ref_mtg ;

    BEGIN

    OPEN ref_cur FOR

    Select acol,

    BCOL

    DE sampletbl rownum<10;

    Fetch ref_cur in bulk collectintorefr;

    Insert intotbl_MT_MTG(acol,bcol)selectacol,bcol fromtable(refr);

    commit;

    CLOSE Ref_cur;

    END;

    /

    When I run this procedure fails with

    ORA-06504: PL/SQL: return variables of the game results or the query types do not match

    ORA-06512: at "TEST_PROCEDURE1", line 10

    ORA-06512: at line 2

    Any help on this please...

    Thanks to an OLD POST below

    so perfect helped me! Thank you

    Tubby

    After 5 years of more :-)

    How to store refcursor in collection How to store refcursor in collection

  • Change the color of the cell of the results of the query, the font size, style

    Change the color of the cell of the results of the query, the font size, style
    Hello
    I have this code below and let me know if it is possible to make the column header a different font style
    Example:
    Font size = 12
    Verdeña
    Blue
    And the cell in the name column in a different color for ex
    Yellow


    Is it possible here and where this code should I put it?

    Thank you very much


    < cfquery = name "gelov datasource ="kl90">"
    SELECT
    -------------------------------------------

    Of
    --------------------------------
    WHERE
    -----------------------------------------
    -----------------------------------------------------

    ORDER BY
    < cfswitch expression = "#Form.orderBy #" >
    < cfks value = "KSNUMBER" >
    KS. KS_NBR
    < / cfks >
    < cfks value = "DATECREATED" >
    KS. KREATDAT
    < / cfks >
    < / cfswitch >
    < / cfquery >

    <! - report html - >
    < cfswitch expression = "#Form.outputFormat #" >
    < cfks value = "HTML" >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    Report Kss Ctwye < title > < / title >
    < / head >
    < style type = "text/css" >
    table {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    TD {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    Th {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    H2 {}
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    }
    H3 {}
    do-family: Arial, Helvetica, without serif.
    font-size: 13px;
    }
    < / style >

    < body >
    < cfoutput >
    < table border = "0" cellpadding = "3" cellspacing = "0" >
    < b >

    < td align = "center" >
    Kss Ctwye report < h3 > < / h3 > < br > < br > < table >
    < /tr >
    < b >
    < td align = "center" >
    < / h2 > report returned #getCtwyeKss.RecordCount # entries < / h2 > < table >
    < /tr >
    < b >
    < td >
    < table border = "1" cellpadding = "2" cellspacing = "0" >
    < b >

    < td width = "160" > Ks number < table >
    < td > K-date < table >
    <!-< class = 'dataField' td > address < table >
    < class td 'dataField' = > Type < table >
    < class td 'dataField' = >-> Description < table >
    < /tr >

    < cfloop query = "getCtwyeKss" >


    < tr bgcolor = "< cfif currentrow mod 2 > F8F8FF < cfelse > WHITE < / cfif >" >
    < td > #KS_NBR # < table >
    < td > #dateformat(KREATDAT,"mm/dd/yyyy") # < table >


    < /tr >
    < / cfloop >

    < /table >
    < table >
    < /tr >
    < /table >

    < / BODY >
    < / HTML >
    < / cfoutput >
    < / cfks >

    < cfks value = "CSV" >


    < NAME CFHEADER = "Content-Disposition" VALUE = "attachment; filename = ctwye.csv">
    < cfcontent type = "application/msexcel" > "Ks Number', 'K-date '.
    < cfoutput query = "getCtwyeKss" > #ltrim (KS_NBR) #, "#dateformat(KREATDAT,"mm/dd/yyyy")" # "< tr #IIF (getCtwyeKss.CurrentRow MOD 2, OF (»), DE('backgroundColor="##999"')) # >"



    <!-< tr bgcolor = "< cfif currentrow mod 2 > # 808080 < cfelse > ##ffffff < / cfif >" >-->
    < / cfoutput >


    < / cfks >
    < / cfswitch >

    There is a suggestion in your other thread

  • Determine if the result of the query begins with a number

    I have the results of the query like this

    123PKM
    AAPL
    WB
    9865W
    FC
    QRST

    How can I determine if the result of the query begins with a digit?
    As 123PKM and 9865W do not start with a number.

    But others did not.

    The refind() would make this task very easily. Not tested, but I think that
    It would be the idea.

    #refind('^[0-9]',myQuery.aField,1,false) #.

    ColdFusin documentation in all directions will define completely the
    refind() function capabilities. It will give even some basics
    the syntax of the regular expressions used by this function.

  • 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

  • 4.0 ai2 - automatic adjustment does not properly in the result of the query grid

    Hello

    in 4.0 ai2 automatic adjustment does not work in the result of the query grid.

    Rather than shrink the columns to the narrower size taking into account topics and content (see 3.2), it auto ' enlarged to fit the entire grid of data query.

    She looks worse and makes it harder to see results at a glance.

    Bug and will be fixed for the release of v4.

  • Result of the query in column mode

    Hello

    the results of the query tab presents its results in lines. For the single line results, it is sometimes useful show the result in a column, so that the fields on a line are presented below between them. Is this possible with SQL Developer?

    Best regards

    Joop

    Yes, the right of the mouse in the grid, and then select "Single Record View"

  • Result of the query based on the form of the parameter

    Good morning people. I really couldn't come up with a smart enough subject line, but I'll try and make up the body.

    I currently have a report that accepts parameters on the parameter form. They are extra employees and Number of Copies. The employee ID is stored in the Employee table, but the number of copies is not.

    The output of the report shows all the different addresses and phone numbers, the employee a. lets say, Employee ID 0001 has two addresses - home and office. In the report of my request, he'll give me two records in the repeating group. However, I have another parameter and the ID of the employee who is the number of Copies. In this case, if the number of Copies to be printed is 1, so it isn't a problem. However, if the Number of Copies is entered by the user is 4, I think in this case 4 x 2 = 8 pages of report output (4 with the address of the House) and 4 with the address of the office.

    I know there is a way to do this using a temporary table in AfterPForm and then using the results of the query by joining my request to the temporary table, but I was really hoping to avoid this situation if it can be treated through the query.

    Main request:
    SELECT    e.emp_no,
              e.saln||e.first_name||' '||e.last_name emp_name,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      employee e, emp_address a
    WHERE     e.emp_no = a.emp_no
    AND       e.emp_no = :P_EMP_NO;
    Any help is appreciated. Thank you!

    Hello

    Since you started a new thread in the forum SQL and PL/SQL {message identifier: = 10470358}, please mark this thread as "Answered" right away.

  • Results of the query variant with unused table in the from clause

    Hi all

    I (processing_table2) table specified in the FROM clause in the SQL query , but I have not used any of its value in the SQL statement , but it still affects the results of the query. Please help me out here I'm naïve.

    This is the provided query

    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    cssp sales_split,
    processing_table2
    WHERE crev.order_num = '7631090072'

    Results of the above query : 344028065018.359



    SELECT

    Sum((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    sales_split PCSS

    WHERE crev.order_num = '7631090072'

    Results of the above query : 26463697309.1046


    Someone here suggest me pls!

    924804 wrote:
    Hi all

    I (processing_table2) table specified in the FROM clause in the SQL query , but I have not used any of its value in the SQL statement , but it still affects the results of the query. Please help me out here I'm naïve.

    This is the provided query

    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    cssp sales_split,
    processing_table2
    WHERE crev.order_num = '7631090072'

    Results of the above query : 344028065018.359

    SELECT

    Sum((CREV.sadc_extd*CSSP.redit_pcnt)/100)

    OF crev revenue_lines,.
    sales_split PCSS

    WHERE crev.order_num = '7631090072'

    Results of the above query : 26463697309.1046

    Someone here suggest me pls!

    CARTESIAN PRODUCT of the changes result set

  • The right way to store the results of the query

    Hey wizards Oracle,.

    I have a few questions that take a long time to run. Given that the results of these queries change only once a day, I will execute queries every morning and store their results in a table.

    I was going to serialize them in chains to the CSV format and then store them as CLOB. But shit, Oracle is a data table, storage system! This is reinventing the wheel within a wheel.
    Then I thought about creating one table per query would be the right way to store their results. But ordinary tables data recovery would be slow, because I would need to create an additional of ORDER_BY column to maintain the order of the results of the query.

    It seems that there is a way to store varrays in the LOB columns, but it does not seem to be appropriate.
    There may be a caching mechanism that could help?

    Does anyone know the proper way to store the result of a query?

    What you describe is a reinvention of the materialized views.
    Have you considered using them?

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • 3.0EA1: display of several results of the query in a spreadsheet

    Hello Forum,
    just after starting SQL Developer 3.0EA1 for the first time, I had a new tab for each SQL query result I entered in the worksheet. This is a great feature!
    But now I can not reproduce this behavior. All SQLs put their results into a single query result tab. The last of them wins.
    I have not found a preference setting to return several results of the query again.
    Did I miss something?
    I'm running on Windows XP and updated the parameters of 2.1.1.64. Perhaps that explains the rescue of the old behavior afer restart SQL Developer.
    I connect to Oracle 10.2.0.5 if it matters.

    Kind regards
    dhalek

    Preferences - Database - spreadsheet - automatically freeze the tabs of the result, or red pine under the result tabs button themselves.

    Have fun
    K.

  • Display of the results of the query with the column names unknown

    I use this code to grab the headers of columns in a select * statement. (I never know what table is queried out of 12 000 or more.) I want to make a loop on the column headers, then the query results in a web page table.

    < cfoutput >
    < cfset colHeaderNames = ArrayToList (recordset1.getColumnList ()) / >
    #colHeaderNames #.
    < / cfoutput >

    Is there a similar method or suggestions for the release of the results of the query - now that I know the column headings?

    If I understand correctly, you can do something like the code below.

  • Result of the query in the page header

    Hello, I have qyery
     select NAMES from VIZIT_NAMES where POSITION_ID  = 
    (select ON_ID from TAN_USERS where upper(USERS)  = :APP_USER)
    and I want to show the result of the query in the page header...

    is this possible?

    I guess I should use javascript to do this but I need an example

    can u help me?

    What is

    
    

    CITY

  • Is there a way to combine their results of the query in a single function

    I have a bunch of functions that return a query:

    < cffunction = access "getDeals" name = "remote" returntype = "query" >
    < cffunction = access "getDeals2" name = "remote" returntype = "query" >

    is there a way to combine their results of the query in a single function that returns a structure of different results?

    Uh, it is probably more suited to a table - effectively turning it into a list of queries. Then you loop the array and each output.

    I use a similar approach in the creation of the system of the user messages. Most of my functions that are called do their part, then at the end call another function, I called 'messages '. This function takes all what my function sends and adds it to a message board.

    Keeps me out of a long list of messages - because I could call several functions at the same time. If I have just the output of a message of each function, each would crush the other. So, I'd get one message at a time.

    Immediately after that he was released, I will destroy it then the message table so that messages are not kept inside.

    Mikey.

Maybe you are looking for

  • Questions of portable Bootcamp

    I recently created a drive windows laptop 10 using my MacBook Pro (retina, mid-2012) using a HDD external 500 GB and WinToUsb. It was working fine and everything was ready for use, so I inserted my USB with bootcamp files downloaded using the bootcam

  • reduced to a bookmarks bar icon

    Yesterday, I had a separate bookmark toolbar line. Today I don't have. I clicked on display in the navigation toolbar and made sure the bookmarks bar has been verified. It was, but no toolbar is visible. If I uncheck bookmarks toolbar, it appears as

  • WindowsUpdate_80244018""WindowsUpdate_dt000"

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messagesWindowsUpdate_80244018""WindowsUpdate_dt000" Recent changes to your computer What you have

  • Windows XP does not recognize the product key that is encrypted to ptfb software

    Win xp works edition overview of ptfb but will not recognize the product key encrypted for the purchased software.

  • Images are not displayed but the cargo space

    Images are not displayed on any service.  There is no empty box with a red X in the upper left.  Any space where the image should be.  This includes backgrounds and individual images.  Even the buttons to link and change the font on this application