Results 1 to 2 of 2

Thread: field

  1. #1
    Join Date
    Oct 2003
    Posts
    83

    Exclamation Unanswered: field

    I want to have a list of the fileds of a table on the basis of field type.Means only fileds of int type or varchar type this way.Is it possible?

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    You probably want something like:
    Code:
    SELECT *
       FROM INFORMATION_SCHEMA.COLUMNS
       WHERE  'dba_holiday' = TABLE_NAME
          AND 'datetime' = DATA_TYPE
    -PatP

Posting Permissions

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