How do I get constarints of a table?

Hi all,
Here is a requirement for me in JDBC.
How do i get the information about the constraints of a table by using JDBC API?
I can get the Primary Keys , Foreign Keys by using DataBaseMetaData. But i am not able to get the Checked constraints, Unique Key Constaints and all.
Please help me on this.
I hope that some of you can help me on this.I will be greatfull to you if you can.
Thanks in Advance,
Aboo Vattem Kandathil,
Chennai,
India.

Hi,
I've checked the JDBC 1.2 and 2.1 spec and there's nothing to be said about constraints.
You can of course go to the database to get this information.
cheers

Similar Messages

  • How can i get access to a TABLE IN A TEXTOBJECT

    Hello,
    i want to edit the textobject1 on an existing report file.
    In DIAdem 8 the script was for example:
        call GraphObjopen("textobject1")
          call TxtBufOpen 
            TxtBufFont="Arial"
            TxtBufFontSize=10
            call TxtBufNextLine
            x = Round(chdx(1,Cno("myErg_" & name)),2)
            call TxtBufTabCellSet(cstr(x),4,1)
    Log file:
       "An der aktuellen Cursorposition befindet sich keine Tabelle!"
       "at the current cursor position there is no table"
    How does it work in 10.2 to get access to a table in a textobject? There is no documentation for this case.
    Regards  Bernard

    Hello Bernhard,
    during the last releases, a lot of the DIAdem modules have been completely revised which in some cases may have led to some old variables becoming obsolete.
    To find out which variables a particular dialog is using you have two options: Open the configuration dialog and use the help button to gat a context sensitive help explaining all available parameters and options. Alternatively, press Ctrl&A inside the dialog to copy all variables to the Windows clipboard. Doing so with a Textobject and pasting the clipboard content into a script you will get the following:
    Call GraphObjOpen("Text1")
      '------------------- Text -----------------------------
      TxtTxt           ="this is text"
      TxtFont          ="Arial"
      TxtSize          =3
      TxtColor         ="black"
      TxtColorRGB      =33554432
      TxtBold          =0
      TxtItal          =0
      TxtUndl          =0
      TxtStrOut        =0
      TxtFrame         =0
      TxtBackColor     =""
      TxtBackRGB       =0
      '------------------- Position -----------------------
      TxtPosX          =40.17
      TxtPosY          =62.39
      TxtAng           =0
      TxtRelPos        ="r-bot."
    Call GraphObjClose("Text1")
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • How can I get the difference of  tables between two oracle server?

    We team have 2 oracle servers in the same version.
    one is develop server and the other is priduct server.
    I want to know what is difference in tables define between the two oracle servers.
    give me a method or a step or a sql script or a tool to compare these two set of tables.
    Edited by: Oracle-Sunmeng on Aug 1, 2012 6:36 PM

    Hi Sunmeng,
    Does Database Link exists between Databases ??
    If I am Clear, Are you looking Something like this.
    To Identify the tables difference, you can query the USER_TAB_COLUMNS view.
    SELECT DISTINCT table_name, 'User1' AS user_table
               FROM user_tab_columns
    UNION ALL
    SELECT DISTINCT table_name, 'User2' AS user_table
               FROM user_tab_columns@dblink
           ORDER BY 1;Which gets us all the Tables available in Both User. where you can filter based on what
    you require.
    Similary, you for column difference
    SELECT   table_name, column_name, 'User1' AS user_table
        FROM user_tab_columns
    UNION ALL
    SELECT   table_name, column_name, 'User2' AS user_table
        FROM user_tab_columns@dblink
    ORDER BY 1;If you need to count the no of columns in both Tables of different databases. Then try this,
    SELECT table_name, 'User1' user_name,
           (SELECT MAX (column_id)
              FROM user_tab_columns a
             WHERE a.table_name = b.table_name) colno
      FROM user_tables b
    UNION ALL
    SELECT table_name, 'User2' user_name,
           (SELECT MAX (column_id)
              FROM user_tab_columns@dblink a
             WHERE a.table_name = b.table_name) colno
      FROM user_tables@dblink b;And, what the Columns in both tables may be same but, if datatype and length of column differs ?????
    Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 1, 2012 10:47 PM
    Edited by: Shankar Viji on Aug 1, 2012 10:49 PM

  • How do I get text inside a table column to stretch the whole column width?

    Hi I am using JDeveloper Studio Edition Version 11.1.1.0.2.
    I have some tables where one of the columns are quite wide (700px) wide and some quite narrow 50px. It doesn´t look pretty. The input text inside the 50px column looks like it stretches out of the column and the inputtext in the 700px column leaves a big empty space in the right side of the column. What I had hoped for is columns which have the same padding to its content as a 100px column no matter the columns width. How do I do that? Do I have to use skinning?

    Well I don´t want the space on both sides of the input text to be that big either so that doesn´t solve the problem.

  • How to view the constarints  of the table

    HI All,
    Could any one tell me how can i view the constraints of particulate table
    Thanks
    Basav

    Query DBA_CONSTRAINTS (or ALL_CONSTRAINTS or USER_CONSTRAINTS depending on what privileges you're looking for and whether you're looking just at objects in your schema or in other schemas).
    SELECT *
      FROM all_constraints
    WHERE owner = <<owner of table>>
       AND table_name = <<name of the table>>Justin

  • How can we get a Scrolling in Table Control while data uploading?.

    Can anybody suggest me the way to put a scrolling in a table control while uploading the data?

    Hello,
    I dont think it is possible, anyways dont do it. It will make the program perfomance very bad. There is an indicator (little watch on the left hand side), that you can use, but it is better to dont do it. As I have told you the perfomance will be very bad.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          percentage = 20
          text       = 'Uploading data'.
    THAT IS THE FM. Use it after and before the upload.
    Hope this helps
    Gabriel

  • How to get subtotals on my table

    Hello,
    Could any one please tell me how can i get subtotals on my table. i am new to the tool trying to get subtotals and grand totals for my analysis. please advice

    Hi,
    Can you post how you achieved this? It can help other users in the future. And also remember to close the thread.
    J.-

  • How to get the list of tables?

    How can I get the list of tables in database using SQL/PLSQL?
    Thank you.

    It depends what Data Dictionary views you have access to.
    SELECT table_name
    FROM user_tables
    will tell you all the tables in your schema.
    SELECT table_name
    FROM all_tables
    WHERE owner = 'XXX'
    will tell you all the tables that you have some kind of access to. You may be able to get similar information from
    SELECT table_name
    FROM dba_tables
    WHERE owner = 'XXX'
    Leave out the WHERE clause if you're not interested in restricting by owner
    You may need to get your DBA to grant access to ALL_TABLES and DBA_TABLES.
    Define these as (parameterised) Cursors if you want to do this work in PL/SQL. Return the results into a PL/SQL table (of xxx_tables.table_name%ROWTYPE) if you want return the list as a parameter. Bulk Collect the results into the PL/SQL table if you're using Oracle 8i.

  • What is Custom Dimentions in FI? How the fields get stored defined under it

    Hi All,
    I need to add 3 Custom fields in Standard FI screens.
    I came to know about Custom Dimentions concept of FI and I added the fields in standard screen. It got reflected to standard Tables also but not in BAPI Structures or IDOCS.
    What all I need to know is how do they get stored in standard tables on save of Document.
    Does any BAPI or Function module gets called for it..?
    Scenario::: These fields will come to SAP ECC from some 3rd Party via Interface.
    So, now, in BAPI/ IDOC I'll have to manually handle those fields. Instead I was looking for some BAPI/ FM which handles Custom dimention fields.
    Please let me know if problem is not clear.
    Regards,
    A Tewar.

    bogon just disappeared from SHARED on my iMac ... - although mystery remains as it still shows up in MBP ...

  • Jdbc getting data from multiple tables

    hi guys
    how can i get data from multiple tables in MSAccess
    please help

    >
    here is code thata i want to do
    i have 3 tables in my MSAccess databace
    Stud_O which consist name,surname fields
    Stud_I consist address,tel
    Stud_E department,faculty fields
    Based on this I would guess that you are missing a key field. There is no way to connect the tables.
    I make the class to insert data to the tables. But
    cant do getting datas from this tables.
    can anybody help me in making query
    and method that displays reultset strings to the
    textBoxes
    A select ...
    select name,surname from Stud_O. Use the executeQuery() method.

  • How i can get only required data from table by using CKM

    Hi...
    i have done one scenerio i.e get required data from one table into another table on basis of some condition by using CKM.
    Now i want same,but this time my target is file ,not RDBMS.
    so plz tell me procedure how i can get required data from source table into File on basis of some condition using CKM.
    thanks

    CKM checks for Constraints and Not Null condition. You can use IKM SQL to File and being that there is no option in IKM for CKM .
    The other method is you can declare those Not null and other condition as Filter in the Source Datastore, that should filter out records that you are not willing to move to files.

  • How to get values from Hash Table

    Hi all,
    I have a hash table "lovResults" craeted with following code -
    String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
    Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
    values which I can see through SOP are - ******Value of lovResults is{roleid=1000, domainFV=CREATIVE, Role=Account Director}
    How can I get the domain value "domainFV=CREATIVE" from hash table in a variable because I have to set this vaue in another field.
    Please help me ASAP
    Thanks
    Amit

    Hi Amit ,
    Since you are successfully printing the values using sop's , please try this code
    Capture the value in controller .
    if(oapagecontext.getParameter("domainFV") != null)
    String formvalue= oapagecontext.getParameter("domainFV") // ensure hashtable id is correct
    Keerthi
    Edited by: keerthioaf on Nov 26, 2012 8:46 PM

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • How do I get the table of contents to toggle? I opened it while reading one book I had checked out from my library, but it is still open when I start another book. I am using Adobe 4 and Windows 8.1 on my PC.

    How do I get the table of contents to toggle? It has remained open since I opened it while reading two books ago. Thanks for the help.

    Thank you for your advice. I followed your directions, but came up with the same results. However, I did discover that whenever I open up the iPhoto Library that is already existing on my MacBook a certain set of pictures shows up. But then when I open up the iPhoto Library from the Hard drive another set of pictures shows up. BUT not ALL of my pictures are showing up on the iPhoto Library from the hard drive. At least the last two years of pictures are not showing up?! Actually, it appears that all the pictures are there from when I started using iPhoto about 5 years ago up until around the time that I got my iMac desktop computer and started using that (2 years ago). I have noticed that more recent videos I have made are showing up in a folder on the hard drive, but will not appear when I open up iMovie?! Any ideas on how to access my pictures from the last 2 years off of the hard drive???

  • 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

Maybe you are looking for