Search
 
SCRIPT & CODE EXAMPLE
 

SQL

find the all the constraints in a specific table

SELECT COLUMN_NAME, CONSTRAINT_NAME, REFERENCED_COLUMN_NAME, REFERENCED_TABLE_NAME
FROM information_schema.KEY_COLUMN_USAGE
WHERE TABLE_NAME = 'yourTableName';
Comment

PREVIOUS NEXT
Code Example
Sql :: peewee print sql 
Sql :: SQL isnumeric DB2 
Sql :: sql select like 
Sql :: mysqkldump devilbox 
Sql :: Rows, INSERT INTO, Returning 
Sql :: sql foreign key constraint 
Sql :: oracle list chain steps 
Sql :: how to rename column name in sql server using query 
Sql :: switch users mysql 
Sql :: calculer pourcentage mysql 
Sql :: how to average max mysql 
Sql :: remove decimal in sql server 
Sql :: dns slave zone convert 
Sql :: oracle disk group space 
Sql :: do block in postgresql 
Sql :: last date for each user sql 
Sql :: mysql remove tabs from string 
Sql :: .env pgsql 
Sql :: java.sql.sqlexception: the url cannot be null 
Sql :: how convert into in in sql query 
Sql :: sql group_concat 
Sql :: mysql select field if condition 
Sql :: how to fetch data from database without last column 
Sql :: Kill session in SQL Developer 
Sql :: sql is not like 
Sql :: Concatenate columns in table 
Sql :: get substract count sql 
Sql :: drop constraint in ms sql 
Sql :: how to add multiple column in mysql 
Sql :: add column mysql 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =