how to know the tables in database having foreign key?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to view the content of the table in mysql?

681


What is mysql port?

753


What is the command used to create a database using php and mysql?

860


Does mysql support nosql?

673


What is sql vs mysql?

748


What is the password of mysql?

704


Write a query to find duplicate rows in table?

690


What data structure does mysql use?

760


How do I view mysql logs?

701


Where is the mysql database stored?

698


Which is better sqlite or mysql?

718


What is a blob datatype?

648


How do I run mysql?

691


What is the role of a limit in a mysql query?

771


How can you add and remove any column of a table?

705