Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL quick reminder please

Status
Not open for further replies.

Pav1977

IS-IT--Management
Jul 5, 2006
59
GB
Hi there - I forgot my SQL book today and can't remember how to search all the tables in a database.
It requires to have FROM and is not taking *.

I know this is stupid - I'd much appreciate your help guys.

So it would be soething like this:
SELECT *
FROM - all tables in a database?
WHERE (PageId = '14061')
 
Put the name of the database in the FROM statement, for example, Master:

SELECT *
FROM master
WHERE (PageId = '14061')
 
I should have said that I tried it - and it can't find the column in tables

I'm trying to search for a value in a specitic colum in all of the tables. I know that the column exists in at least 2 tables - and need to find out if there is more.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top