Input text query results based on input text

<input type="text" name="textfield2" />
hello
i have this input text and i also have a query that contains
where field = '#form.input#'
it is still not displaying the results .
is there a book or a article on how to do this.
i just needed to have a input box /text where a user can
enter a alphanumeric and outputs the query result.
how do you do this?
would you guys like to see the code??

The tag is an Input tad, the input's type is text, it's name
is
textfield2. Your query should have something like field =
'#form.textfield2#'
From the documentation:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001252.htm
jermainestudent wrote:
> <input type="text" name="textfield2" />
>
>
>
> hello
> i have this input text and i also have a query that
contains where field =
> '#form.input#'
>
>
> it is still not displaying the results .
> is there a book or a article on how to do this.
>
> i just needed to have a input box /text where a user can
enter a alphanumeric
> and outputs the query result.
>
> how do you do this?
>
> would you guys like to see the code??
>

Similar Messages

  • How to get Query Results based on Analysis Authorization Ranges????

    Hi Experts,
    I have gone through the lot of SDN Links, however not able to find the answer to my question.
    I have an Authorization Issue, “NO Authorization “
    Error : EYE 007 ( Insufficient Authorizations )
    <b>Here is the issue:</b>
    Need to see the complete query result when I gave the range in Analysis Authorization for Controlling Area 001-005. Controlling Area is auth relevant and right now a variable is inserted in the query for it. If I select Controlling Area 001, the result for Controlling Area 001 is displayed in query. If 002 then also displayed. If I do not enter anything, then I get the <b>Eye 007 error message</b>.
    I am not sure how do I display/authorize the entire result in the query for all the Controlling Areas, I have authorized user to see??
    <b>Its really urgent, please help..!</b>
    Here are the logs:
    Authorization Check Log
    Date and Execution Time (Local Server)
    Execution Date: 06.09.2007
    Execution Time: 14:48:41
    Executed Query: 0CCA_C11/GBCCA_MP01_Q0002_AP
    Executed by User ZBI_TEST_001
    Executed with Analysis Authorizations of Another User ZBI_TEST_001
      InfoProvider Check  
    Building the Buffer...
    ...Buffer Built
    Are there authorizations for accessing InfoProvider 0CCA_C11 with activity 03?
    Authorization exists for general access to InfoProvider 0CCA_C11 with activity 03 
      InfoProvider Check  
    Authorization exists for general access to InfoProvider 0CCA_C11 with activity 03 
      Relevant Characteristics for Detailed Authorization Check  
    (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider 0CCA_C11:  
    0CO_AREA 
    0TCAACTVT 
      Relevant Characteristics for Detailed Authorization Check  
    (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider :  
    List Is Empty:
      There Are No Characteristics That Have to Be Checked in Detail  
      Authorization Check  
      Detail Check for InfoProvider 0CCA_C11  
      Preprocessing:  
    Selection Checked for Consistency, Preprocessed and Supplemented As Needed
    Subselection (Technical SUBNR) 1
    Check Node Definitions and Value Authorizations...
    Node- and Value Authorizations Are OK
    End of Preprocessing
    Filling the Buffer...
    ...Buffer Filled
      Main Check:  
      Subselection (Technical SUBNR) 1  
    Supplementation of Selection for Aggregated Characteristics
      No Check for Aggregation Authorization Required  
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    CO_AREA = '0003'
    AND TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Authorized   
      Subselection (SUBNR) Is Authorized  
      Authorization Check Complete  
      Authorization Check  
      Detail Check for InfoProvider 0CCA_C11  
      Preprocessing:  
    Selection Checked for Consistency, Preprocessed and Supplemented As Needed
    Subselection (Technical SUBNR) 1
    Check Node Definitions and Value Authorizations...
    Node- and Value Authorizations Are OK
    End of Preprocessing
    Filling the Buffer...
    ...Buffer Filled
      Main Check:  
      Subselection (Technical SUBNR) 1  
    Supplementation of Selection for Aggregated Characteristics
      No Check for Aggregation Authorization Required  
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Partially or Fully Authorized (Intersection)   Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    ( CO_AREA < '0001'
    OR CO_AREA > '0005' )
    AND TCAACTVT = '03'
    Value selection partially authorized. Check of remainder at end
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    ( CO_AREA < '0001'
    OR CO_AREA > '0005' )
    AND TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Not Authorized   
    All Authorizations Tested
      Message EYE007: You do not have sufficient authorization  
      No Sufficient Authorization for This Subselection (SUBNR)  
    Following CHANMIDs Are Affected:
    184 ( 0CO_AREA )
      Authorization Check Complete  

    Hi,
        Have you defined the vaule for 0CO_AREA as BT 001-005 in you Authorization for 0CO_AREA.Also how have you defined your Authorization Variable on the query? Have you define as select options or interval? I thing you need to define it as interval or select options.
    Hope it helps,
    Cheers,
    Balaji

  • Query Result based on the Parameter Form

    Good Morning folks. I really couldn't come up with a smart enough Subject Line but I will try and make it up in the body.
    I currently have a report that accepts Parameters on the Parameter Form. They are Employee ID# and Number of Copies. The Employee ID is stored in the Employee table but the number of copies is not.
    The output on the Report shows all the different addresses and Phone Numbers the Employee has. Lets say, Employee ID 0001 has two addresses -- Home and Office. In the Report output based on my Query, it is going to return me two records in the Repeating Group. I however, have another parameter along with the Employee ID which is the Number of Copies. In this case, if the Number of Copies to be printed is 1, then its not an issue. However, if the Number of Copies entered by the User is 4, I would expect in that case 4 x 2 = 8 pages of Report output (4 with the Home Address and 4 with the Office Address).
    I know there is way to do this using a Temporary table in AfterPForm and then using the results in the Query by joining my query to the Temporary table but I was really hoping to avoid this situation if it can be handled through the Query.
    Main Query:
    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. Thanks!

    I think I have not explained my requirements clearly and I have missed some valuable information. I will go ahead and start again.
    We do have quite a few reports with similar scenarios, so avoiding Temporary tables would be very beneficial if this works using Queries.
    I have a Report that has a Parameter Form. This Parameter form has 6 fields in total.
    Three of them belong to Customer ID# and 3 belong to Number of Copies.
    User Parameters for Customers: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
    User Parameters for the Number of Copies: P_N1, P_N2, P_N3
    So, the field PF_CUST_ID1 would have a source with P_CUST_ID1 and the field PF_N3 would have a source P_N3
    Form Paramater:
      PF_CUST_ID1   ----------         PF_N1   ---
    PF_CUST_ID2   ----------         PF_N2   ---
    PF_CUST_ID3   ----------         PF_N3   ---So, at any given point, there could be a maximum of 3 Customer ID's passed to the main query. Here is an example of what the input parameters could look like.
    User chose to enter values for Customer ID's 1 and 2 and left it blank for Customer 3.
      Customer ID1   1001         Number of Copies   2
    Customer ID2   1002         Number of Copies   3
    Customer ID3   ----         Number of Copies   -The Query that retrieves data looks something like this. The query below is intended to fetch Customer Home and Office Addresses.
    Of course, it is possible that there might be No home or Office Address or both.
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      customer c, customer_address a
    WHERE     c.cust_no = a.cust_no
    AND       c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);Based on my query:
    Customer ID 1001 has 3 Addresses (2 Home and 1 Office) --> Total number of Records = 3
    Customer ID 1002 has 2 Addresses (1 Home and 1 Office) --> Total number of Records = 2
    The output should be something like this. I have put a Label Copy1, Copy2 and Copy3 to show
    how the data will appear for readability.
    Cust No Customer Name      Address Type    Address Line 1         Address Line 2        Telephone
    Copy1
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy2
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy1
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy2
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy3
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Scripts for the table creation and INSERTs
    CREATE TABLE CUSTOMER
        "CUST_NO"    VARCHAR2(4 BYTE) NOT NULL,
        "SALN"       VARCHAR2(4 BYTE),
        "FIRST_NAME" VARCHAR2(20 BYTE),
        "LAST_NAME"  VARCHAR2(20 BYTE),
        CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
    Insert into CUSTOMER values ('1001','Mr','Robert','Green');
    Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
    Insert into CUSTOMER values ('1003','Dr','David','Taylor');
    CREATE TABLE CUSTOMER_ADDRESS
        "CUST_NO"      VARCHAR2(4 BYTE) NOT NULL ENABLE,
        "ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
        "STREET"       VARCHAR2(20 BYTE),
        "CITY"         VARCHAR2(20 BYTE),
        "PROVINCE"     VARCHAR2(2 BYTE),
        "POSTAL_CODE"  VARCHAR2(10 BYTE),
        "TEL_AREA"     VARCHAR2(3 BYTE),
        "TEL_NUMBER"   VARCHAR2(10 BYTE)
    Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
    Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');Edited by: Roxyrollers on Jul 17, 2012 10:34 AM
    Edited by: Roxyrollers on Jul 17, 2012 10:58 AM

  • How to upload the web query result  to CSV/Text file

    Hi,
    Kindly help me on the following.
    1)       I have info-provider (IP), which has info-objects "company code" and "supplier".
    2)       I built a query by putting company-code with a variable in free-charateristics and supplier-code in row.
    3)       When I run this query, it will ask company-code as input and the result will be filtered using company-code.
    4)       For this query, I created a web-template and assigned data-provider to display the data on the web.
    5)       The user wants to enter input company-code='1000' and write the data in a CSV file in a specific directory. i.e, by clicking the execute button (after entering company code) , the result should go to the CSV or text file. i.e. the application should automatically generate the file with query results.
    Note: The user should not use context menu to EXPORT TO CSV OR EXCEL file.
    Please let me know, if there is any tutorial. Thanks a lot advance help.
    Regards
    Kandasamy

    1. SELECT INTO
    Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
    Use AdventureWorks2008R2;
    Go
    ---Insert data using SELECT INTO
    SELECT AddressLine1, City
    INTO BothellAddresses
    FROM Person.Address
    where City = 'Bothell';
    GO
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    2. INSERT INTO SELECT
    Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
    another table.
    Use AdventureWorks2008R2;
    Go
    ---Create Table
    CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
    ---Insert into above table using SELECT
    INSERT INTO BothellAddresses(AddressLine1, City)
    SELECT AddressLine1, City
    FROM Person.Address
    where City = 'Bothell';
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • Using CTRL + F not working to find any text within the query result

    Hi friends,
    I am trying to use find option to find any text within the result section of a query but when I do CTRL+F  the find window appears and I can input the text that I wanted. But when I press Enter it is not giving me any result though the entered text
    is in the query result. I am using Sql Server 2012 Management studio. Any Body please help me. There is a job that I have to search certain things after running a script and now I am doing copy paste to excel and doing searching from there. 

    Prashant,
    Looks like you are trying to do in SSMS, and it is because the result set is in Grid view , if you want to use CTL + F then your result should be in Text format, try to do using CTL + T ( To get result in Text) and then use CTL + F to find any
    text.
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • How to output a query results into a text file

    How to output a query results into a text file instead of outputing it to the screen..
    is there a way for us to write a SQL query which specifies to output the query results to a text file.
    Pls let me know how to do it
    Thanking u in advance
    regards
    Muraly

    Muraly,
    If you are using SQL*Plus 8.1.6 or later, you can also spool output to a file in HTML format, eg
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON
    SPOOL c:\temp\report.html
    SELECT DEPARTMENT_NAME, CITY
    FROM EMP_DETAILS_VIEW
    WHERE SALARY>12000;
    SPOOL OFF
    SET MARKUP HTML ENTMAP OFF
    In iSQL*Plus 9.0.1 (the browser-based interface to SQL*Plus) onwards, you can also send the HTML output to a new web browser window, or an html file -- much easier than the command line method.
    Alison

  • Set Text Item To SQL Query Result

    I am trying to set a text item to a SQL query result. Something like the following:
    (I am trying to accomplish this in the SOURCE portion, set to 'SQL Query' source type, of the text item properties)
    SELECT empno FROM emp WHERE empno = :SEARCH_EMPNO;
    This only displays as the literal text when the application renders and not the value from the SQL query.
    I apologize if this has already been posted but I could not find what I am looking for. I have seen posts that reference a pre-region computation but do not know the exact steps to accomplish the results I want.
    Thanks in advance for anyone's time to help me with my issue.
    Kyle

    Scott,
    The literal that displayed (I have fixed it) was the actual SQL statement: SELECT empno FROM emp WHERE empno = :SEARCH_EMPNO;
    I have resolved the issue, using SQL Query as the "Source Type" and Always, replacing any existing value in session state as the "Source Used" for the properties of the item.
    What I was trying to accomplish is a search text item that would return the data for that record in a table into other text items, for each column in that record, for update; based on the search text item as a unique SQL query search for that record.
    Thank you for your quick reply!
    Kyle

  • Refresh characteristic texts in query result without logoff in Bex 7.0

    Dear Experts,
    I'm using a query in BEx 7.0 and switched off all caching parameters in RSRT. For instantly reloading values from Cube/DSO this is working fine.
    Some of my characteristics are shown as key + text in query result. Unfortulately these texts are not updated during the query reloads. I do not want the user to logoff / logon the report to get the updated texts.
    Interestingly, after a refresh the texts for those characteristics are updated immediately for all filter items, but not in the result area.
    Could you give me a hint, how I will be able to refresh those characteristic texts as same as the values in the infoprovider? E.g. using VBA makros or by customizing of specific workbook settings?
    Thanks for your help!
    Kind regards,
    Tim
    Edited by: Tim Kley on Apr 19, 2010 2:42 PM

    Hi,
    what have you achieved so far concerning this.
    My post from today was also going in this topic.
    In Bex update after attribute change run
    The setting of this paramter I mentioned there could maybe help in your case.
       transaction "RS_FRONTEND_INIT" add the parameter "ANA_ENHANCE_REFRESH" with value "X"
       o Open the analyzer and connect to system to open WB
       o Click on the refresh button
       o New functionallity "Full Refresh Of Active Queries" is now available.
    Best regards Harry

  • How to get query result in comma dilimited text or excel file?

    Does anybody know how to get query results in comma delimited
    text file or excel file, I tried spool abc.txt, but the result
    showed some ------ lines
    Thanks

    Try doing this in your sql scripts
    set heading off
    set pagesize 0
    set linesize 4000
    set feedback off
    set verify off
    set trimespace on
    set colsep ","
    spool output.txt
    select * from dual (or whatever you are querying
    spool off
    There may be a couple other set statement that you could add but
    this should get you started in the right direction

  • Show blank texts instead of key or 'not assigned' in query-result

    Hi,
    is there a way / workaround to
    1. suppress # / 'not assigned' in query results?
    or
    2. show blank texts (if maintained) instead of the key
        (when showing texts for a characteristic in a query all characteristics with blank texts - none or ' ' -
         will show the key instead of the blan text) ?
    Thanks,
    Christoph

    Hi Christoph,
    there have been several posts concerning this topic. As Saad told there is no direct way within SAP standard to reach this aim.
    Depending on the Front-End Tools you are using these posts may help:
    Not assigned and # in BEX 7.0 WAD
    how to set field to blank if the data is # or unassigned
    Brgds,
    Marcel

  • Saving query results to text file

    Hi experts,
    I would like to save a query results to text file.
    The query has desined to the correct structure and I wish the query results will be saved automaticly to text file every time the query is running.
    The query should cintain some sql code that will save the query to text file instead of show the query results.
    What function of SQL should I add to query to achieve that goal. (The query is a long one).
    Thanks in advance,
    Joseph

    If you are talking about Query Manager, it is not difficult to do.  No matter how long your query coding is, just go to the start point of your query.  Then press CtrlShiftEnd to select all the TEXTs.  CtrlC and CtrlV will copy the text (query codes) to text file easily.
    Thanks,
    Gordon

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • Search directory of PDF's based on Query Results?

    Hello - Is it possible to search a directory of .pdf files
    based on a
    returned list of query results? For example I query a product
    database
    that returns a list of Product Names and Product ID's. Based
    on that
    list of query results, I'd like see if a pdf exists in the
    directory
    that has the same name as the Product ID, and then create a
    link to that
    .pdf.
    Make sense?
    Thank you,
    Steve Miller

    I figured it out.
    Thank you,
    Steve Miller
    Steve Miller wrote:
    > Hello - Is it possible to search a directory of .pdf
    files based on a
    > returned list of query results? For example I query a
    product database
    > that returns a list of Product Names and Product ID's.
    Based on that
    > list of query results, I'd like see if a pdf exists in
    the directory
    > that has the same name as the Product ID, and then
    create a link to
    > that .pdf.
    >
    > Make sense?
    >
    > Thank you,
    > Steve Miller

  • Fetching query result for editbox

    Hello to everyone. I just started developing Windows application (after 2 years pause). So, I'm working 'with' MFC Dialog based app.
    I want to fill combo box (or edit box it doesn't matter) with MySQL query result. I have these codes:
    void CConnectToMySQLDlg::OnWriteToDatabase()
    CString get, set;
    m_edit.GetWindowText(get);
    CT2CA temp_string(get);
    string s_get(temp_string);
    if (m_edit.GetWindowTextLength() != 0) // if you can please write this line better.
    MySQL_Driver *driver;
    Connection *dbConn;
    Statement *statement;
    ResultSet *result;
    driver = get_mysql_driver_instance();
    dbConn = driver->connect("tcp://127.0.0.1:3306", "root", "connection");
    dbConn->setSchema("world");
    statement = dbConn->createStatement();
    result = statement->executeQuery(s_get);
    //CStringArray comboArray;
    /*comboArray.Add(_T("bir"));
    comboArray.Add(_T("iki"));
    comboArray.Add(_T("uc"));
    comboArray.Add(_T("dord"));
    comboArray.Add(_T("bes"));
    comboArray.Add(_T("ffsfsfs"));
    comboArray.Add(_T("bfsfsfsdes"));
    comboArray.Add(_T("bczxczxes"));
    comboArray.Add(_T("aadafdsbes"));
    comboArray.Add(_T("zczxawfebes"));*/
    //comboMysql.ResetContent();
    string s_set = "string";
    set.Format(_T("%S"), s_set.c_str());
    while (result->next())
    // here how can I set edit box value?
    // So, how can I convert
    AfxMessageBox(L"dsadasd");
    delete result;
    delete statement;
    delete dbConn;
    else // handling user input
    AfxMessageBox(L"not allowed");
    I can get input stream and successfully(1) execute it but I don't know how to set its result(s).
    (1) --- In this case I entered this SQL line:
    select ID, Name from city where ID = 1 or ID = 2 or ID = 3 or ID = 4
    and it alerted me 4 times.
    p.s. If there any problematic codes please tell me the correct variant(s).
    Best regards,
    Mirjalal.

    I solved my problem. I pasted working codes below.
    void CmysqlDlg::OnBnClickedButton1()
    CString get, set, ComboString;
    edit.GetWindowText(get);
    CT2CA temp_string(get);
    std::string s_get(temp_string);
    if (edit.GetWindowTextLength() != 0) // if you can please write this line better.
    MySQL_Driver *driver;
    Connection *dbConn;
    Statement *statement;
    ResultSet *result;
    driver = get_mysql_driver_instance();
    dbConn = driver->connect("tcp://127.0.0.1:3306", "root", "connection");
    dbConn->setSchema("world");
    statement = dbConn->createStatement();
    result = statement->executeQuery(s_get); // executes the user "input"
    comboBox.ResetContent();
    // ofstream y("text.txt"); // actually i don't need this anymore :P
    while (result->next())
    string name_string = result->getString("Name"); // Name is the my tbl column name
    CString cs_name_string(name_string.c_str());
    comboBox.AddString(cs_name_string);
    delete result;
    delete[] result;
    delete statement;
    delete[] statement;
    delete dbConn;
    delete[] dbConn;
    else // handling user input
    AfxMessageBox(L"olmaz");
    Thanks.
    Mirjalal

  • Export query result to csv using Export Wizard

    Been a decade since I last used Oracle and related tools.
    I had to use Oracle server again, I have a query over multiple tables, I am to run a scheduled script that will spit out the query result as a csv file.
    I started with SQL Developer Export wizard, in step "Specify Data", I am at a loss, where to specify the query itself? I see a Name,Schema,Type input, a text area below, Up,UpAll,Down,DownAll buttons etc etc. Where do I specify my query here? Can someone please help?
    Is this the best way to go about to schedule a data export (query to csv) daily?

    To export a user query rather than a whole table, run it in a worksheet and export using the context menu on the result grid. However none can be scheduled.
    Instead you can look at the SPOOL command and schedule it through SQL*Plus. Any questions can go to the iSQL*Plus and/or SQL And PL/SQL forum.
    Have fun,
    K.

Maybe you are looking for