Comment afficher la liste des clés primaires et des clés étrangères d’une base de donnée SQL Serveru

0
28

SELECT DISTINCT
Constraint_Name AS [Constraint],
Table_Schema AS [Schema],
Table_Name AS [TableName]
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
GO

LEAVE A REPLY

Please enter your comment!
Please enter your name here