“MySQL Show Foreign Keys” Réponses codées

MySQL Show Foreign Keys

SELECT 
  TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME
FROM
  INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE
  REFERENCED_TABLE_SCHEMA = '<database>' AND
  REFERENCED_TABLE_NAME = '<table>';
VasteMonde

Colonne de touches étrangères mysql show

SELECT 
  TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME
FROM
  INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE
  REFERENCED_TABLE_SCHEMA = '<database>' AND
  REFERENCED_TABLE_NAME = '<table>' AND
  REFERENCED_COLUMN_NAME = '<column>';
VasteMonde

Réponses similaires à “MySQL Show Foreign Keys”

Questions similaires à “MySQL Show Foreign Keys”

Plus de réponses similaires à “MySQL Show Foreign Keys” dans Sql

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code