English

Create the following table. Column name Data type Size Constraints Scode Integer 3 Primary key Sname Varchar 20 Place Varchar 10

Advertisements
Advertisements

Question

Create the following table.

Column name Data type Size Constraints
Scode Integer 3 Primary key
Sname Varchar 20  
Place Varchar 10  
Code Writing
Advertisements

Solution

CREATE TABLE Streams (
    Scode INTEGER(3) PRIMARY KEY,
    Sname VARCHAR(20),
    Place VARCHAR(10)
);
shaalaa.com
  Is there an error in this question or solution?
Chapter 10: Structure Query Language - EXERCISE [Page 201]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 10 Structure Query Language
EXERCISE | Q 29. | Page 201
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×