1.

Which one of the following statements is used to create a table?(a) CREATE TABLE table_name (column_name column_type);(b) CREATE table_name (column_type column_name);(c) CREATE table_name (column_name column_type);(d) CREATE TABLE table_name (column_type column_name);This question was posed to me during an interview for a job.My enquiry is from Working with Databases-1 in chapter Objects and Databases in PHP of PHP

Answer»

The correct option is (a) CREATE TABLE table_name (column_name column_type);

To explain: The example creates a table CALLED “student” that CONTAINS five columns: SID, LastName, FirstName, Address, and City:



Discussion

No Comment Found

Related InterviewSolutions