“Mysql zeigen fremde Schlüssel” Code-Antworten

Mysql zeigen fremde Schlüssel

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

MySQL zeigen Fremdschlüsselspalte

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

Ähnliche Antworten wie “Mysql zeigen fremde Schlüssel”

Fragen ähnlich wie “Mysql zeigen fremde Schlüssel”

Weitere verwandte Antworten zu “Mysql zeigen fremde Schlüssel” auf Sql

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen