July 13, 2005 at 10:14 am
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.
July 13, 2005 at 10:25 am
Select * from Information_schema.columns where table_name = 'TableName'
July 13, 2005 at 10:25 am
select * from information_schema.columns
July 13, 2005 at 10:26 am
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 .
July 13, 2005 at 7:09 pm
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 !!!**
July 13, 2005 at 9:33 pm
He needs to query the system tables... not to get their columns info .
July 14, 2005 at 5:27 am
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