Help With Query

  • I need to write a query against system tables to see what columns exist on what tables. It is rahter easy to get alist of the columns. I need some help knowing which tables they go with.

    Any assistance would be appreciated.

  • Select * from Information_schema.columns where table_name = 'TableName'

  • select * from information_schema.columns

  • ok, ok, I'll give you my vote if you insist.. Send the t-shirt at the same adress as all the books I ordered .

  • Or this...

    select * from information_schema.columns

    where table_name like 'sys%'

    order by table_name, ordinal_position







    **ASCII stupid question, get a stupid ANSI !!!**

  • He needs to query the system tables... not to get their columns info .

  • ok - then this:

    select * from information_schema.columns

    where table_name not like 'sys%'

    order by table_name, ordinal_position







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply