1.

To see the table structure, which of the following SQL commands is issued?(a) DESCRIBE tbl_name(b) VIEW tbl_name(c) SELECT TABLE tbl_name(d) SELECT tbl_nameI got this question by my college professor while I was bunking the class.Origin of the question is MySQL Setup topic in chapter General MySQL Use of MySQL

Answer»

Right OPTION is (a) DESCRIBE tbl_name

To elaborate: The ‘DESCRIBE’ command is issued to SEE the structure of the table ‘tbl_name’. It SHOWS the structure in the FORMAT: Field-Type-Null-Key-Default-Extra. The ‘VIEW’ and ‘SELECT’ commands are used to see the CONTENTS of the table.



Discussion

No Comment Found

Related InterviewSolutions