select t.table_name
from information_schema.tables as t
inner join information_schema.columns as c On t.TABLE_NAME = c.TABLE_NAME
Where t.TABLE_TYPE = 'BASE TABLE' AND column_name = 'user_id' And t.table_schema = 'NOMBRE_BASE_DE_DATOS'
También podemos buscar en todo el servidor eliminando el filtro de table_schema
Y esto es todo amigos, feliz programming
Saludos
Alex.
También puede interesarte:
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
Error en MySql - The user specified as a definer USER does not exist when using LOCK TABLES |