how to know the tables in database having foreign key?

Answers were Sorted based on User's Feedback



how to know the tables in database having foreign key?..

Answer / rahul

DESC <tableName>

This will give you all property of table. Where Key column show you key description.

Is This Answer Correct ?    1 Yes 0 No

how to know the tables in database having foreign key?..

Answer / sudhanshu_kmr

use this .....

show create table <tablename>;


it will describe all the properties of the table.

here <tablename> is name of table for which u want to know about.

for example-

SHOW CREATE TABLE STUDENT;

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More MySQL Interview Questions

What does it mean to be case sensitive?

0 Answers  


How would you get the current date in mysql?

0 Answers  


How to dump one database for backup.

0 Answers  


What is MySQL?

0 Answers  


What is a definer?

0 Answers  






How can we know the number of days between two given dates using MySQL?

2 Answers   Base2 Infotech, Webworks,


What is delimiter in mysql?

0 Answers  


How do you create a new database in mysql?

0 Answers  


How to create trigger in mysql workbench?

0 Answers  


What is a text delimiter?

0 Answers  


Is primary key auto increment?

0 Answers  


How do I change the max connections in mysql?

0 Answers  


Categories