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 is dblink?

0 Answers  


What is select query in mysql?

0 Answers  


Can't connect mysql server on localhost?

0 Answers  


Can I install mysql on mac?

0 Answers  


What is an index? How can an index be declared in mysql?

0 Answers  


What is myisamchk?

0 Answers  


What is delimiter in mysql?

0 Answers  


How to dump one database for backup.

0 Answers  


What is the difference between a database and a table?

0 Answers  


How do you start MySQL on Linux?

3 Answers  


Can you tell the difference between $message and $$message?

0 Answers  


What is max_used_connections in mysql?

0 Answers  


Categories