How can we read data from spread sheet using RowSet Object ??

Please give some sample code for this...
Urgent requirement....please....

http://java.sun.com/developer/Books/JDBCTutorial/chapter5.html
�I sense many useless updates in you... Useless updates lead to defragmentation... Defragmentation leads to downtime...Downtime leads to suffering..Defragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" --
http://sqlservercode.blogspot.com/

Similar Messages

  • Without loops how can i read data from associative Array??

    Hi all,
    I am facing scenario like...
    i need to read data from associative array  without using loops is it possible,
    CREATE OR REPLACE PACKAGE BODY test_pkg IS
        TYPE t1 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
       -- in array we can expect more than one row or sometimes no data also.
      FUNCTION test1(vt1 T1 DEFAULT CAST(NULL AS t1)) RETURN NUMBER IS
      BEGIN
        -- basically in array we'll get data of column2
        -- this loop should satisfies table1.colum2 = nvl(NULL, table2.colum2 )if array is null.
        -- if array is not null then only compare with array values
        FOR i IN (SELECT t1.colum1,t1.column2
                         FROM table1 t1, table1 t2
                              WHERE t1.colum1 = t2.column1
                                AND t1.colum2 = nvl(vt1, t2.colum2)
          LOOP
            generateTEXT(i.colum1, i.colum2);
         END LOOP;
      END test1;
    END test_pkg;
    in table1 we have date like...
    colum1          column2
    Jan                  1
    Feb                  2
    Mar                  3
    if i call select test_pkg.test1(1) from dual then output should
    be Jan..
    and
    select test_pkg.test1(null) from dual then it should display all elements from table1.
    Jan                  1
    Feb                  2
    Mar                  3,
    Thanks for your quick replay..

    i need to read data from associative array  without using loops is it possible,
    No - you would need to create a SQL type and then use the TABLE operator to unnest the collection.
    create or replace TYPE my_nums IS TABLE OF INTEGER;
    DECLARE
    --  TYPE my_nums IS TABLE OF PLS_INTEGER INDEX BY PLS_INTEGER;
      v_nums my_nums := my_nums(1, 2, 3);
      v_total number;
    BEGIN
      select sum(column_value) into v_total from table(v_nums);
      DBMS_OUTPUT.PUT_LINE
        ('Sum of the numbers is ' || TO_CHAR(v_total));
    END;
    Sum of the numbers is 6

  • How Can i Read data From Maintainance View

    I Want read data from Maintainance View. i written select query
    SELECT *
    FROM J_1yyyyV
    INTO TABLE GT_BUSPLACE.
    WHERE BUPLA = LV_BUPLA.
    this is giving following error
    "J_1yyyyV" is not defined in the ABAP Dictionary as a table,
    projection view, or database view.
    Can you help me Please.
    Thanks in Advance.
    Regards,
    Raj.

    Hi raj,
    maintainance view is a nothing but combinations of table using join on some fields..
    see the relation ship between the joins..
    if you want to write selection query ..go to se11 -->enter view name >and open tab>
                    Table/Join  conditions--> see the table's involved and join conditons between tables.
    and write the select query same as like the Table/Join  conditions in se11..now you can acheive the
    table maintainance fields..
    Prabhudas

  • How can i read XML from local drive using Javascript into Live Cycle

    Hello,
    I am creating PDF Form using Acrobat LiveCycle.
    I want to write java script for load data into relative field and data present into xml file which is located at local drive
    I have write all method for parsing xml which is required ............... but i am stuck into how to read/open/load local drive xml using javascript?

    sandyrock:
    You'd better post this message to Adobe LiveCycle forum: http://www.adobeforums.com/webx/.3bbeda8d/
    You can use postMessage method in LiveCycle JavaScript to communicate with host application,the host application can be a web brower like IE.
    In IE you can use IE javascript to access local XML file.

  • How can I read bytes from std input using nextByte()

    Hi. I am trying to read input text from std input into a byte array. I used the following procedure but have been getting errors
    Scanner myScanner = new Scanner(System.in);
         do{
              List[i] = myScanner.nextByte();
              i++;
         }while(i<List.length);
    When i try to print the List array after this loop, i get an InputMismatchException and Unknown Source error. What could be responsible for this?
    Thanks

    i don't really know what you're trying to do, but try this:
    maybe it helps you out.
    byte List[] = new byte[10];
            for (int i = 0; i < List.length; i++) {
                Scanner myScanner = new Scanner(System.in);
                List[i] = myScanner.nextByte();
            }this code creates an array of byte elements. the length of the array is 10 ( = new byte[*10*]). the for loop let's you fill the array with byte numbers over the keyboard.
    good luck

  • Uploading Datas From Spread sheet to Database Table

    I went to URL http://htmldb.oracle.com/pls/otn/f?p=38131:1 and download Vikas' CSV Upload application (a zip file) as well as the script to create the HTMLDB_TOOLS package.
    I follow the steps in the link : Re: File Browse, File Upload
    The application is created,Preview shows that the datas in the form of Excel sheet,but I cant upload the spread sheet.
    If I click the Upload button It shows the Error:
    ORA-01861: literal does not match format string
    Error ORA-01861: literal does not match format string
    OK
    Kindly let me know the reason for the error.
    Please help me to solve this Issue.
    Thanks in Advance
    by
    Suresh

    Hi Gussay,
    Thanks for ur reply.
    I found the error,it was due to the date format.
    If i drop the date column from the table and also from spread sheet,then it uploads.
    How can we load dates in spread sheet to database column.
    Thanks in advance
    Suresh

  • How can i extract data from oracle table  to flat file or excel spread shee

    Hello,
    DB Version is 10.1.0.3.0
    How can i extract data from oracle table to flat file or excel spread sheet by using sub programs?
    Regards,
    D

    Here what I did
    SET NEWPAGE 0
    SET SPACE 0
    SET LINESIZE 80
    SET PAGESIZE 0
    SET ECHO OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET MARKUP HTML OFF SPOOL OFF
    Sql> SPOOL bing
    select * from -------;
    SPOOL OFF;
    I do not see file.
    I also tried
    Sql> SPOOL /tmp/bing
    select * from -------;
    SPOOL OFF;
    But still not seeing the fie,

  • Read data from excel sheet and then perform the required operations.

    Hi all
    I need to write a procedure which can read data from excel sheet.I have excel sheet in which i have to options one is modification and other is addition.so if it reads modification then i need to read the concerned table name then check its availability in pl-sql datbase.If table exists then reading the realated column in that row to fire the querry. The excel sheet is saved in local disk c.
    can anybody help me with this.How i need to start specialy to read the data from excel sheet saved in local disk c.
    Edited by: user13334062 on Jun 30, 2010 3:45 AM

    Hi
    If you can convert the excel to a csv format, then it can be simply query from DB Creating Oracle External Tables. Best part is that you may still change the CSV using EXCEL.
    Following action Points can be adopt;
    *1. Convert Excel File to a csv. File Save as CSV*
    *2. Create Oracle Directory* ( This has to be the location of your excel file )
    SQL> Create directory mydir as 'C:\testdb'; --- "testdb" is the location folder in win for your excel sheet.
    *3. Create the External Table*
    SQL> create table my_ext_tab (
    Field1 Datatype,
    Field2 Datatype,
    Field3 Datatype,
    Field4 Datatype,
    Field5 Datatype
    Organization external
    (type oracle_loader default directory mydir
    access parameters (records delimited by newline fields terminated by ',')
    location ('my_ext_tab.csv'))
    reject limit 100;
    *4. Now you can query the table "my_ext_tab"*
    Select * from "my_ext_tab";
    Please avoid the reformat the data column inside the spreadsheet (CSV).

  • How can i read data in pagemaker file (PMD) using Visual Studio C# NET ?

    I have bunch of data in .PMD file (Page Maker Document). Which contains mathematical equations and chemistry formulas, I am a .NET developer, and I am writing code for one of the educational learning system. For that I need to read and store mathematical equations/ chemistry formulas from .PMD file into database then display on the browser page.
    Is it possible to read data from .PMD file using C#.NET, do I need to use any external libraries. How can I import .PMD to MATHML (Mathematical Markup language)?
    Any existing examples for C#.NET?
    Please help me regarding this.

    I can't claim to know much about visual C# Net, but I do know a bit about pagemaker. It really can't handle equations. there are a few work arounds involving things like baseline shifts and multiple text boxes, but generally equations were created in different programs and placed in pagemaker in picture or eps files. Either way the chances of extracting usable data out of pagemaker is very slim.
    Jay

  • How can you transfer data from one ipod to another ?

    How can you transfer data from one ipod to another ipod ?

    The geniusbar told me what to do, I understood but there is still a problem for me >:/ It's not showing up though. Like "device."  Nothing is happening, and I tried as soon as I got home. Then after half an hour, then an hour, then 3 hours. My problem is that it's not showing up! It's stuck in recovery mode! There's still like 25% battery. So I have no idea why.

  • How can I transport data from one client to another client?

    How can I transport data from one client to another client? 
    Regards,
    Subho

    hmmm, CTS = cutomizing transport?
    If you have a customizing table, there are still two possibilities.
    1. customize in DEV system and transport
    2. customize right there where you need it.
    this depends on how the maintainance view is built. If it is a simple customizing table and you get not asked for a TR when customizing a new record or changing an existing one, you hit possibility 2.

  • How can i store data from a pc to TC

    how can I backup data from a PC to TC

    Get a suitable backup software..
    Windows backup is of course useless. But you should already know that. It will not work on any version less than pro anyway.. due to MS deciding people with home versions should never use networks. ???
    That is why there is one million and one third party backup software that do work with network drives. Look up reviews of what works well. for the price you want to pay and get it.. Drive Image was a popular one. I must have a copy somewhere I bought .. then changed to Mac..
    There are plenty of free ones.. I do use macrium reflect.. does disk image only unless you pay the license.. but works super well.. particular for restore.. which people kind of forget.. the value of backup is how well does it restore.
    Use ethernet if possible.
    Note that mixing TM and data on the TC is not necessarily a great idea if you are also running Macs.

  • How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    If your "older" MBA has a Thunderbolt port then it isn't that old. See Target Disk Mode about how it's used. Note that without a monitor you won't be able to tell from the screen when it has fully started, and if it succeeded in starting in TDM. If it did, then the hard drive should appear on the Desktop of your new computer. You can then access it to transfer your files. You can even use Migration Assistant or any backup utility to transfer data. Just don't try to transfer system files.

  • How can I freeze (lock) my Spread Sheet layout in Numbers?

    How can I freeze (lock) my Spread Sheet layout in Numbers?
    I have problems with Numbers changing my Spread Sheet layout
    by adding extra Rows while I am not looking, or while I engage in dragging its pages with the mouse to see info on adjacent pages.
    The layout I use consists of a Spread Sheet containing 4 "print" pages, ea.  8.5" x 11" wide, with a total of 36 Rows and 28 Columns. 
    The SS is filled with new cell values daily, but the formulas stay mostly the same. The print pages are visible on the computer screen side by side, and each Row extends over these 4 pages.
    It happens sometimes that I have to change a formula while making entries on a cell in "page 4", and then need to "accept"
    the new entry and formula "aaalll" the way on the very left of "page 1".  So here I try to scroll left or drag the present view
    with the mouse.  I also have to use the "Zoom" at 150 % because I cannot see well on my MacBook Air, everything is rather small.
    I suspect that during dragging with the mouse I drag cells or rows without knowing, and that this will add extra Rows derailing some formulas or values because a cell is suddenly in a different Row.
    It is difficult to find which Row was added and what values where thus changed.  One just sees 38 rows instead of the orihinal 36!  The only way is to move all the cell values out of rows 37 and 38, and find where theey used to be on the previous day's saved locked sheet.   Needless to say that when that happens twice in a days work, it means a lot of lost time.
    I have checked the Numbers Manual and searched Help Info for ways to lock an established cell layout and could noy find anything.
    I cannot believe it, maybe I missed something.  I worked for about 35 years with Clarisworks and Appleworks Spread Sheets and never had the same problem, layouts were locked by design, and could only be changed by special procedures.
    Now is there a way to freeze or lock the basic layout of a spread sheet in Numbers? 
    I appreciate your help.   (Numbers 2.3, Mac OS 10.8.5. MacBook Air)

    Hi Numbers22,
    I guess I was just beating around the bush to avoid simply saying, "No, you cannot lock the layout." So there it is.
    I am not sure why you are scrolling  to "accept" a formula. That is unclear. I guess you building a new formula and need to use a cell from an early column. It is also unclear to me as ot how you are actually adding extra rows. I haven't been able to do it on my machine without clicking the little arrow in the row number or using Option-↑ (or -↓). Option-↑  would add a row above the row you are in if they somehow got pressed. Do you have a program running that could be interpreting something your are doing for those keystrokes? If I was standing at your shoulder I might be able to see what is doing it.
    What I am suggesting is that you play around with your trackpad settings so that you are not selecting and tapping in your table while you attempt to scroll. I do have one sheet with two tables side by side with a total of 425 columns and I can scroll past them without modifying them. So perhaps turning off tap to click in system preferences will help. If you have an option to decrease trackpad sensitivity then try that (I don't, but I remember having it somewhere in the past). If you are using a mouse see what you can do to decrease the sensitivity for a click. If your computer is old it could be that the trackpad is wearing out and throwing random clicks. You might try using another input device if you have one.
    quinn

  • How can i get data from a maintance view?

    Hi all.
        Can you give me some suggestion about 'How can i get data from a maintance view?'?
         Thanks
         Best regard

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecdf446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

Maybe you are looking for

  • Problem of defining value to a textfield in MovieClip

    hello,dear everyone there is problem that realy confused me.that is the textfield(or other display objects) in MovieClip can't be defined when i jumpto that frame.check these simple code: mc.stop() function goNext(evt:Event){ mc.nextFrame() dosth() f

  • How to calculate  extended quantity in BOM IMPLOSION QUERY

    Hi guys, I have given an assignment to create BOM  item where used report, For this purpose I am using an BOM implosion API  (PACKAGE.PROCEDURE = BOMPIINQ.IMPLODER_USEREXIT) I am calling this API like this- declare   V_SEQUENCE_ID    number;   v_err_

  • SEM-BPS Excel layout

    Hi, In SEM-BPS I use fiscal year variant K4 and when a Excel planning layout is started with a period October, 2007 to September, 2008 the system also displays a column with  year = 2008 and period = 00. How can I avoid this? Thanks, Jair

  • When pre-ordering something on itunes what rules apply?

    About a month ago I pre-ordered an album on itunes, The album dosent come out until november but the first single on the album came out today. If i purchase the song now, will it be downloaded again when the album is avalible? also will i be charge t

  • Index out of bound?

    I dont understand what im doing wrong. :( everytime i try to delete an entry from the iterator it gives me the index out of bound msg. what im i doing wrong? app code:                      ConsoleIO.out.print("Which employee to delete? Enter Payroll