Skip to content

Commit 19deaa6

Browse files
committed
Merge branch 'feature/showFK' into develop
2 parents 1cfdd06 + 7349e17 commit 19deaa6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

show-foreign-keys

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
mysql -u root -p <<EOT
3+
use INFORMATION_SCHEMA;
4+
5+
select TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,
6+
REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME from KEY_COLUMN_USAGE where
7+
REFERENCED_TABLE_NAME = '$1';
8+
EOT

0 commit comments

Comments
 (0)