sorry to be a pest but I've got a MySQL5 database with no documentation and within it I've got a table that I'm trying to find where it's foreign keys are pointing to.
if this was SQLServer I'd be querying syscolumns and sysobjects to find where else the column is mentioned (it's a safe bet in this case that the foreign key/ primary key names will be the same)
so... what's the MySQL version of
SELECT
T.nameFROM sysobjects AS T
INNER JOIN syscolumns AS C
ON
T.ID =
C.ID
WHERE T.type = 'U'
AND C.colname = @column
and
(unlike Enterprise manager) if I can't see the system tables can I still query them?
thanx
b