DbGetQuery = How to get the results to display?

I am using the following
sqldata <- dbGetQuery(con," select sysdate from dual")
How do I get the result to display?
summary(sqldata) displays the values
if I do dbSendQuery then fetch show the results
help(dbSendQuery) and help(dbGetQuery) go to the same page! dbSendQuery
The documentation says dbGetQuery will connect, get the records and clear; maybe the clear happens before the display?!

Hello Amin,
Here is the way to display the result from the query you provided:
Assign the result of the query to object 'sqldata':
R> sqldata <- dbGetQuery(con," select sysdate from dual")
Type the object name at the R prompt:
R> sqldata
              SYSDATE
1 2014-04-28 14:45:14
Sherry

Similar Messages

  • Call function in background task... How to get the result?

    I want to use Call function in background task parameter.
    But I cannot find the result of this function. (No export parameter, no table result, no exception)
    How to get the result of this function module? Correct or not?

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • Af:query - How to get the result rowsets

    Hi,
    I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
    For this i am using af:query component. And trying to get the result rows for the named criteria.
    String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
    processMethodExpression(mexpr, queryEvent, QueryEvent.class);
    ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
    ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
    getDestinDescViewObj().applyViewCriteria(vc);
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(tblDestinDesc);
    However on each click of search the rows searched in the previous attempt are not retained.
    Can anyone let me know how to get the result from named criteria and append it the table?
    Thanks
    Ajay

    Can anyone help?

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get the results for given Bind Variable

    Hi
    Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
    snippet as follows
    viewObject.setNamedWherClauseParams("name","hei");
    viewObject.executeQuery();
    How to get the results from viewObject is my question..?
    Thanks in advance

    Should be something like
    while (vo.hasNext()){
    Row r = vo.next();
    r.getAttribute....
    You might want to read the "most commonly used methods" appendix in the ADF Developer Guide.

  • How to get the results in one line

    Hi
    if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
    another question - is there a way that the script will not show the server name on every path?
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
    THC

    If you take you script and pipe it to get member, it will give you a list of various script properties.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
    You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
    TypeName:
    Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
    Name MemberType Definition
    Equals Method bool Equals(System.Object obj)
    GetHashCode Method int GetHashCode()
    GetType Method type GetType()
    ToString Method string ToString()
    CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
    Timestamp Property datetime Timestamp {get;set;}
    Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
    You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
    This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
    and then give it various options. This is how you would pipe it (without any options).
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | format-table }
    Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
    get-help format-table
    I hope this helps!
    Thank for all the info...

  • How to get the result set in batches

    I have a query which results into large data. This data i want to display in a group of 20. After every 20 records i want to add header and footer to it.
    Is it possible to get the result set data into batch of 20 ? means can i specify start and end index of query ?
    regards
    Manisha

    What I am saying is that a big query with lots of
    joins will probably be slow, and as such would be a
    ripe candidate for batching the responses, if it were
    not possible to speed/optimize it. Batching is nice
    to look at for the user, but is not a solution for
    performance problems. In essence it is irrelevant
    that it adds a little performance deficit, as it
    appears to be running a lot quicker, and gives more
    feedback to the user.Then let me say it again....
    - "Join" is a term that applies to a method of doing queries in the database....
    - Query 1 which uses a join and returns 15 rows
    - Query 2 which does not use a join and returns 1500 rows.
    Given the above then Query 1 will provide better overall performance for the system than Query 2 in a properly configured database.
    If it doesn't then the database is not set up correctly.
    And again this will be irrespective of whether the query is scrollable or not.

  • How to get the material list displayed in CU50 transaction into ABAP report

    How to get the 'KMAT" type material list displayed in CU50 transaction into ABAP report?
    I am getting the entire BOM when i am using the FM CS_BOM_EXPL_MAT_V2 in to the table in the report.
    But I want only the material list displayed in CU50.

    Hi,
    Could you please tell us how you found a solution to your problem?
    Thanks & regards
    Hassan

  • How to get the result of a method on a page

    I use JDeveloper 11g
    I want the result of a method (String) in the ApplicationModule on a page (jspx)
    What I have done is:
    1. make a method (getValue) in the ApplicationModule Algemeen (also in Client interface)
    2. make a pagedef-file with executables and bindings, see
    <executables>
    <invokeAction id="doGetValue" Binds="getValue"
    Refresh="renderModel"/>
    <variableIterator id="variables" Refresh="renderModel">
    <variable Type="java.lang.String" Name="getValueReturn"
    IsQueriable="false" IsUpdateable="0"
    DefaultValue="${bindings.getValue.result}"/>
    </variableIterator>
    </executables>
    <bindings>
    <methodAction id="getValue" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="getValue"
    IsViewObjectMethod="false" DataControl="AlgemeenDataControl"
    InstanceName="AlgemeenDataControl.dataProvider"
    ReturnName="AlgemeenDataControl.methodResults.getValue_AlgemeenDataControl_dataProvider_getValue_result"/>
    <attributeValues IterBinding="variables" id="ValueReturn">
    <AttrNames>
    <Item Value="getValueReturn"/>
    </AttrNames>
    </attributeValues>
    </bindings>
    3. on the page (jspx) I have an outputText-component:
    <h:outputText value="#{bindings.ValueReturn.inputValue}"/>
    But, it does not work, I don't get the result of the method on the screen.
    Who can help me with this?

    Hi,
    Simple example below:
    Suppose you have this method in AppmoduleImpl:
    public void testHello( ) {
    return "Hello";
    1.After you expose this to clientInterface,drop this method on the jspx page as ADF Parameter
    form
    2.Drop the return String as outputText
    3.Run the page,click on the commandButton & the outputText returns 'Hello'
    Regards,
    Shantala

  • How to get the resulting XML as string

    Hello,
    I think my question is very simple but i'm new in this area.
    What i'm try to do is to parse a XML document with the DOM parser. Then i manipulate the DOM tree. After finishing the process i want to get the resulting XML document as an InputStream to give to another application for storing back into the database.
    Until know i print the resulting XML to System.out or I write it to a file.
    Do you know where i can find more information about this? Sample code??
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    You can try following code. It is not the simplest way, but it works for me:
    // Print to temp buffer
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream output = new DataOutputStream(baos);
    Xml_doc.print(output);
    String outtemp=baos.toString();
    System.out.println(outtemp);
    include following line for the lib:
    import java.io.*;<HR></BLOCKQUOTE>
    Many thanks for the reply. It works!

  • [JCOP Shell] how to get the result of a script into a variable ?

    Hello all,
    I have a jcsh script that swaps the Two nibbles of an hexadecimal number.
    #swap.jcsh
    X= 0xAB
    R= $(/expr $(/expr ${X} << 4 ) + $(/expr ${X} >> 4 )  )
    /echo 0x${R;h2} the value echoed is 0xBA, right.
    now, I want to replace the X varibale by an argument variable ( ${1} ) and , instead of echoing the result, storing it into another varibale; example :
    Y= swap 0x23this is not working. ;-(
    Does anyone knows how to do it ? is there a "return" equivalent to put at the end of my "swap" script ?
    mkdata are you there ? :)
    Kartagos

    Thank you very much mkdata
    I solve it temporarely by using a global Variable TEMP that will be used by scripts to store the result, then the caller script will simply read the value of this variable (old old school global variable method :) )
    now I'm considering re-writing my libraries
    I knew that there something "DEFUN" but i didn't find any help (when typing "help /error" it talks about something called "defun")
    I think I should write to the JCOP Team to update their docs.
    Regards
    Khaled

  • How to get the result from graph  based on table prompt?

    I have one report in which I am having one table and three Graphs. I have added table prompt for one column i.e department. In that I have given three values. The values of my table changes as per the table prompt. But my requirement is my graphs should show me the result as per the selection of departments in table prompt. Please give me the solution for the same.

    Hi,
    Create a event channel the table view and refer the same channel name in the graph properties.
    Edit Graph --> Edit properties --> Enable Master-Details Events --> Give the channel name.
    It will work for the selection of table .
    Mark if helps.
    Raja Mohamed

  • Copying data out of WFA: how to get the results of a job

    I'm currently using WFA 2.2.0.2.6 in a product environment to create storage volumes and whilst the scripting aspects of it make provisioning the storage. there is one aspect that is difficult: getting the name of the volume path. Why is that difficult? When I execute the a workflow with WFA, the various steps in the "Execution Plan" all light up green and the volumes/qtrees created are put into the "Return parameters" tab. When I go to that "Return parameters" tab, I cannot select the data presented there for copying out. I am forced to manually transcribe what's presented in the "Returns parameters" tab. Is there a workaround for this?Some other way to get the volume path, share names, etc, that a workflow creates so that it can be easily copy and pasted for use elsewhere? Kind Regards,Darren 

    Hi, Yes we can't copy the return parameters  from the "Return parameters" tab.  If return parameter is used as input parameter for command in the workflow, those return parameter values can be copied from "execution plan" tab. Regards,Veerendranadh CH  

  • How to get the result of auto detecting of text-encoding in HTML component.

    Hello.
    I just run in to the wall.
    I've hard that a HTML component automatcally detect the text-encoding of a HTML page loaded,
    and it supposed to be detected through Binary data of its HTML source code.
    I wonder, if there is any variable or function to get the detected text-encoding like UTF-8, iso-8859-1 or something like that.
    I'm glad for any response.
    thanks.

    There is TEXT_IO package in forms. For more help use the Oracle Form specific forum.

  • When clicking on a link, the results go to download folder; how do I get the results to display on my monitor?

    When clicking on a link within our Website, the PDF results go to my download folder. To view my PDF results, I am required to go to my Adobe Reader and open that corresponding PDF file. It would be great if I could simply view the PDF on the screen without having to go to Adobe Reader (v. 10.1.4). Thanks for any assistance or guidance on this issue.

    Hello,
    Check your PDF settings at:
    * Tools (or [[Image: New Fx Menu]]) > Options > Applications
    It might be set to "Save", change it to "Preview in Firefox" or any other alternative of your choice.
    Let us know if that solves your issue!

Maybe you are looking for

  • App Store and Updates not loading in Mavericks

    Hi there, Upgraded my imac to Mavericks and all was well.  Then there were some updates for my Aperture, iPhoto and iMovie (all previously purchased as full copies).  Something went wrong to my internet connection during the updates and the app store

  • How can I delete messages on phone(5c)and have them simultaneously be deleted on computer

    how can I synchronize deleting messages on iPhone 5c and my computer MacBook Pro (10.7.5)

  • Card reader don't work after installing win 7 ultimate on pavilion dv-6 1260ej

    card reader don't work after installing win 7 ultimate on pavilion dv-6 1260ej. Tried downloading this driver: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-75456-1&cc=il&dlc=he&lc=he&... still dont work.

  • Can't find Swing classes

    I'm running RH8, but quite new to linux, so it's possible I just don't have something set up right. I downloaded and installed the rpm for J2SE 1.4.1, which I believe is supposed to include Swing, right? Then I typed in the first example out of my bo

  • Log_buffer change in Production

    Hi, DB: 10.2.0.4 RAC ASM OS: AIX 5.3 L My RAC setup has single physical standby on ASM. LOG_BUFFER parameter in my live database has 13 MB .I want to change this value to 70 MB. Please give me the steps to do change this parameter in RAC live databas