Introduction to SQL - Technical MCQs

Q1:

You can add a row using SQL in a database with which of the following?

A ADD

B CREATE

C INSERT

D MAKE

ANS:C - INSERT

Queries explanation:

1] ADD : It is used to add the column in already created table using alter keyword.
ex. alter table table_name ADD (column_name data_type(size));

2] CREATE: it is used to create the new table .
ex. CREATE table table_name (column_name data_type(size) );

3] INSERT: it is used to insert the row values into the already created table.
ex. INSERT into table_name values (1 ,'XYZ', ....)
or INSERT into table_name values(&column1, '&column2()',.....);