Can ResultSetMetaData() return the table name if it is selected from a view

hi all
can anyone tell me if ResultSetMetaData() can return the name of the table if it is selected from a view? thanks, i tried and it didn't return nothing. is it because the view is treated differently than table in ResultSetMetaData?

hi all
can anyone tell me if ResultSetMetaData() can return
the name of the table if it is selected from a view?
thanks, i tried and it didn't return nothing. is it
because the view is treated differently than table in
ResultSetMetaData?I would say "no". A view could be a multi-table join query, or maybe even a no-table query. The bigger picture I think though, is that you shouldn't need to know what the underlying table(s) were for this query - smells of a mis-design.

Similar Messages

  • How can I get the table name of my column?

    I'm using the JDK 1.3 trying to get a table name of a column from a result set. Regardless of what driver I'm using (ODBC Bridge/Oracle) I always get a null returned. Does this method work?
    If not, if I'm doing an SQL query that uses more than 1 table and each table has a return of the same column name, how do I distinguish which table the column is from. Thanks

    You can use ResultSetMetaData interface and method
    String getTableName(int column)
    This should return you the table name.
    To get ResultSetMetaData object, you can use
    ResultSetMetaData getMetaData()
    method of ResultSet interface.
    HTH

  • How can I get the table name of a field..

    Hi,
    If we know the table name we can find all the fileds from it
    using desc <tablename>.
    But, I would like to find table name of a known field's name.
    Where all these fields are storing in the database.
    THanks in Advance,
    Srinivasulu.

    ALL_TAB_COLUMNS
    rgds, APC

  • How can one find the table name of the Delta Que and setup table?

    Hi !
    Is there any method to find the table name of the delta que and Extraction que ?

    setup table = <extract structure>_setup
    example: setup table for MC11VA0ITM = MC11VA0ITM_SETUP
    Delta Queue is based on following 3 tables:
    ARFCSDATA
    ARFCSSTATE
    TRFCQOUT
    assign points if useful ***
    Thanks,
    Raj

  • How can we get the table name...

    Hi All,
    How can we get the actual table name for an argument if its datatype is %ROWTYPE.
    For Ex :
    function ACCOUNT_UPDATE (account_no number,
    person person%rowtype,
    amounts dbms_describe.number_table,
    trans_date date)
    return accounts.balance%type;
    In the above function 'ACCOUNT_UPDATE', for argument person the datatype is 'person%rowtype'.
    Is there any way to get the name from Data Dictionary tables.
    I tried using All_Arguments and DBMS_DESCRIBE, I can able to get all the individual fields of %ROWTYPE by I could not able to know the exact table name thru the DD.
    my requirement is dynamically I need to declare a variable for the argument datatype.
    Your help is highly appreciated.
    Thanks

    hi vinay,
    this is the easiest way to find the tablename of a particular field.
    t.code:XD01.
    enter.
    select the kunnr field.
    press F1.
    the top of the screen u will get 'Technical setting icon.
    select that one.then u will get tablename,fieldname,parameter id also.
    if helps give the rewards.
    regards,
    akash.k

  • Can I change the table name in a mapping without redoing  the connections?

    Hi All,
    I have a mapping that connects table A to table B_old. Is there a way change table "B_old" to "B_new" without altering any of the connections? (in other words, I just want to swap out the table)
    Thanks
    irene

    You can rename the table within the mapping and then synchronize it with the new table, using the option "match by names". The fields must have the same names as the new table fields. New fields will be created in the table.

  • How can I get the logoff time of each db user from system view?

    I can get the logon_date from gv$session.
    Now,I want to get the logoff_date from some view or table.
    I know that I will get it with trigger.
    But,I am not will to user trigger for it.
    Who can tell me which view or table will show the info?

    But,I am not will to user trigger for it.Are you saying you are not willing to fire a trigger to gather this information?
    I don't know of a table, if one exists, someone will know.
    I say until you find a table, just write a SYSTEM TRIGGER on LOGOUT and place this information in your own table.
    Eric

  • Can we find the table name from the form

    note:without using the property palette

    poelger is right, use GET_BLOCK_PROPERTY either with QUERY_DATA_SOURCE_NAME for the Query-table or with DML_DATA_TARGET_NAME for the DML-target

  • How can i set the values to text box by selecting from drop down list.

    hi ,
    i am using struts and jsps. i have a dropdown list of names(getting the values of names from database), i want to get address and phone number of that selected one.how can i get that?

    Hi swarupa,
    Well My advice in this senario wud Be
    Either U can make Use of XmlHttp Object through javascript(AJAX way).
    Or U need to Maintain the State of the entire form and then refresh the page to get those results....
    just for U r reference i am attaching a link which was programmed using ASP @ server side and which made use of XmlHttp Object.....
    http://www.w3schools.com/ajax/ajax_database.asp
    Just try to simulate the samething in your own way....
    REGARDS,
    RAHUL

  • Changing the table name while drill down at the dashboard query

    I have a DAY fact table that has about 1B rows.
    The purpose of this table is to store on hand quantity for each item per day.
    On the presentation layer I have a dashboard that will display average on hand qty per year and then user can drill down to quarter/month/week and then by day level to see the actual value at evey level.
    Its hard to run aggregation on fly as all my 3 TEMP tablespace 32gb each filled and then I get error can not extent TEMP file.
    So I thought I will do the aggregation at the database level and store the aggregated data in another table. So at first dashborad will read this new aggregated table to display qty at yearly. As soon as user drill down to quarter the dashbord should query the actual DAY fact table by filtering for specific year and quarter.
    IS it possible? Can I change the table name while I drill down to lower level?
    Thanks in advance.

    Hi use,
    Yes. This is possible in OBIEE. You need to use Action Links to have navigation between reports. The main idea is to have 2 analysis. One with your aggregated data by year (using your aggregated table), and another one with the rest of the hierarchy and data (using normal fact table)
    You add an action link on this report, that can navigate to the second report. showing "the details" (in your case would be the rest of the time dimension).
    Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/ for actions links.
    Another way is to create 2 analysis, then go to the 2nd analysis, and filter the column year as "Is based on results of other analysis" and you select there the first analysis. In this case when you click on the year in the first analysis, this value will be passed to the second analysis so you can filter the rest of the hierarchy based on the year you clicked on the first analysis.
    If helpful, assign points.
    J.

  • What is the table name for structure field MUEBS???

    Hi...Experts...
        How can I know the table for a screen-field if i get structure from it F1 Technical settings....
    Ex: Here MUEBS is the screen field (Char. Display) in one of the subscreens of VA41. And it is from
          RV45A structure...
    Now how can I know the table name for this field MUEBS.
    I know some methods but they r not help ful.. please try it and get back to me.
    Thanks,
    Naveen.I

    Naveen,
    Table field                    Short Description                                                                               
    VBMUE            Sales Document: Characteristic Overview           
    MUEBS                          Characteristic display                                                                               
    VBMUEZ           Sales Document: Characteristic Overview Assignments
    MUEBS                          Characteristic display                                                                               
    VBMUET           Sales Document: Characteristic Overview Description
    MUEBS                          Characteristic display
    You can find same by SE15>Abap dictonary>fields>table fields.
    Amit.

  • Get the table names from a specified schema name

    Can't any one can hlep me how to use OCIDescribeAny() to retrive the list of table names for a given schema name?
    I have problem when I connect to the database using syste as usr id. I can't ge the table name form the SCOTT schema.

    If I understand you correctly, I don't think OCIDescribeAny() is the way to go.
    You can get a list of tables owned by a particular schema by using the following SQL:-
    SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER = 'SCOTT'
    Just change the where clause to your needs.
    Regards.
    Adrian

  • The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password.  I have an HP laptop

    The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password? I have an HP laptop. 

    Chances are, there was a signficant power surge or voltage fluctuation just before the power went out. This type of thing can cause the AirPort Extreme to reset back to default settings.
    If this occurs, your only option is re-configure the device again, just as you did originally.
    In order to improve your chances this next time this happens, (especially if you live in an area where thunderstorms are severe), a good quality surge suppressor / voltage limiting power strip will really help, and may save you the entire device or a nearby computer next time something like this occurs.

  • Can the table name in a cursor be parameterized?

    I would like to do the following in pl/sql
    Procedure my_proc ( varchar2 table_name) is
    CURSOR my_cursor ( table_name VARCHAR2 ) IS SELECT some_column FROM table_name ;
    i.e. parameterize the table name. I know it is possible to parameterize the SELECT cause by doing the above but, as written, my example will not compile. So, I'm wondering if it is even possible to create a cursor like this.
    Thanks for any help/advice,
    -=beeky

    I wanted to add that I have no control over the database design. The reason I want to parameterize a cursor is to allow a single procedure to do exactly the same thing to six tables. These tables contain data for different geographic regions and are supplied by an outside party. My script essentially merges these tables into our relational model.
    Thanks again to all who replied,
    -=beeky

  • How to get the table name of a field in a result set

    hi!
    i have a simple sql query as
    select tbl_customerRegistration.*, tbl_customerAddress.address from tbl_customerRegistration, tbl_customerAddress where tbl_customerAddress.customer_id = tbl_customerRegistration.customer_ID
    this query executes well and gets data from the database when i get ResultsetMetaData from my result set (having result of above query) i am able to get the field name as
    ResultSetMetaData rsmd = rs.getMetaData();//rs is result set
    String columnName = rsmd.getColumnName(1);
    here i get columnName = "Customer_id"
    but when i try to get the tabel name from meta data as
    String tableName = rsmd.getTableName(1); i get empty string in table name....
    i want to get the table name of the respective field here as it is very important to my logic.....
    how can i do that.....
    please help me in that regard as it is very urgent
    thanks in advance
    sajjad ahmed paracha
    you may also see the discussion on following link
    http://forum.java.sun.com/thread.jspa?threadID=610200&tstart=0

    So far as I'm aware, you can't get metadata information about the underlying tables in a query from Oracle and/or the Oracle drivers. I suspect, in fact, that the driver would have to have its own SQL parser to get this sort of information.
    I'm curious though-- how do you have application logic that depends on the name of the source table but not know in the application what table is involved? Could you do something "cheesy" like
    SELECT 'tbl_customerRegistration' AS tbl1_name,
           tbl_customerRegistration.*
    ...Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • How can I edit a video clip in PE and take it out of PE to use elsewhere?

    I want to add edited video clips from PE to use in my photoshop slideshow. I would also like to use the edited clips in another programme, but I only get a file that can only be opened in PE. I have PE 4 and Photoshop 6.on a desktop PC using Vista. M

  • FCE Express is writing render files to startup disk not external hard drive

    Hi I'm using FCE Express HD 3.5.1, with a MacBook Pro 2.4 GHz Intel Core 2 Duo, with 2 GB memory. I'm using a Lacie big disk extreme as my scratch disk, and FCE is set up to write all render files to this. However, I noticed that my startup disk was

  • Crash Bang 15th day of 30 day trial, file now says "read only"?

    so I've lost a lot of work and I don't understand. Files not found to open, and files panel says it's "read only". Doesn't convert to writable or will it change when I click the "turn off read-only" option. Am I screwed now or what?

  • Upgrade a degraded pool

    I know that this is not necessarily the right forum, but the FreeBSD forum haven't been able to help me... I recently updated my FreeBSD 8.0 RC3 to 8.1 and after the update I can't import my zpool. My computer says that no such pool exists, even thou

  • Canon EOS 450d RAW files and Aperure 2.1

    Hi everybody! Can anyone tell me if Aperture 2.1 (under Leopard 10.5.6) handles RAW files of my Canon EOS 450d? Because, from this page http://support.apple.com/kb/HT1475, it seems that this camera is supported. Actually Aperture show me correctly on