मराठी

code snippet. CREATE TABLE student( name CHAR(30) student_id INT, gender CHAR(1), PRIMARY KEY (student_id) ); What is true about the following SQL statement? SelecT * fROM student;

Advertisements
Advertisements

प्रश्न

Choose the appropriate answer with respect to the following code snippet.

code snippet.
CREATE TABLE student(
name CHAR(30)
student_id INT,
gender CHAR(1),
PRIMARY KEY (student_id)
);

What is true about the following SQL statement?
SelecT * fROM student;

पर्याय

  • Displays contents of table ‘student’

  • Displays column names and contents of table ‘student’

  • Results in error as improper case has been used

  • Displays only the column names of table ‘student’

MCQ
Advertisements

उत्तर

Displays contents of table ‘student’

Explanation:

SQL keywords are generally case-insensitive, so SelecT * fROM student; is valid and displays all records and columns of the student table.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Introduction to Structured Query Language (SQL) - Exercise [पृष्ठ १७०]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 11
पाठ 8 Introduction to Structured Query Language (SQL)
Exercise | Q 2. c) | पृष्ठ १७०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×