DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Database Views

  1. #1
    Join Date
    May 2002
    Posts
    1

    Unhappy

    I have a VB6 application and I am trying to write code that deals with a database that only uses views (referencing to another full database).

    In SQL databases I can find out all the column names for a table using the SQL statement:

    SELECT COLUMN_NAME, DATA_TYPE
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = '" & sTableName & "'"

    Does anyone know how I can do something similar in Oracle?


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    checkout user_tables or user_objects
    Jeff Hunter

  3. #3
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712
    User_tab_columns might help you as well:
    Code:
    select column_name, data_type
    from user_tab_columns
    where table_name = 'SOME_TABLE'
    Ales



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width