Database Creation & Table Manipulations /*creating a database*/ create database school; /*show list of databases*/ show databases; /*to delete a database*/ drop database school; /*getting into a database school*/ use school; /*creating a table info Name Roll Section Subject */ create table info( name varchar(255), roll int, section varchar(1), subject varchar(25) ); /*to show list of tables present inside school database*/ show tables; /*to show the structure of table*/ desc info; /*to add a new column*/ alter table info add column house varchar(255); /*to add a class column after roll number*/ alter table info add column class int after roll; /*to add checking to class column*/ alter table info change column class class int check(class>0 and class<13) not null; /*to add primary key to class roll*/ alter table info change column roll roll int primary key; /*adding a default value to house set house to white house*/ alter table info change column house house varch...
All Solved Program and question papers for ICSE, ISC , CBSE and WBCHSE WB Board. Number 1 Programming & Coding classes in West Bengal.