Discussion
Create table employee (name varchar ,id integer) What type of statement is this ?
Answer: B
Correct answer: DDL
CREATE TABLE defines a new relation, naming its attributes and their domains, so it is a Data Definition Language statement.
The test is what the statement acts on: DDL changes the structure of the database, DML changes the data within it. Nothing is stored by this statement - it produces an empty table awaiting rows. The declaration name varchar is worth noticing as incomplete in standard SQL, which requires a length as varchar(n).
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development