Create Tables
- What default value gets stored in columns of the table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
NULL is the default value as it stands for “Absence of value”.
- In the following query, what does “person” stands for:
INSERT INTO Student
(id, fname, lname)
VALUES (1,’Ajit’,’Gupta’);
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Table name
- In the following query, what does “person_id” stands for?
CREATE TABLE Student
(id SMALLINT UNSIGNED,
fname VARCHAR(20),
lname VARCHAR(20) ,
CONSTRAINT pk_Student PRIMARY KEY (Student_id));
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Primary key is also termed as a super key.
- Which statement can be used for modifying the definition for an existing table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
ALTER
- Which feature is used for automatic increment of the column?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
AUTO_INCREMENT