This document provides SQL commands for describing tables, selecting data, inserting data into tables, altering tables by adding and dropping columns, deleting data, updating data, and listing databases and tables. It includes commands for describing a table, selecting all data from a table, inserting multiple records into a table in one statement, altering a table to add a date of birth column, deleting a record by primary key, and updating records by setting column values and specifying a condition.
This document provides SQL commands for describing tables, selecting data, inserting data into tables, altering tables by adding and dropping columns, deleting data, updating data, and listing databases and tables. It includes commands for describing a table, selecting all data from a table, inserting multiple records into a table in one statement, altering a table to add a date of birth column, deleting a record by primary key, and updating records by setting column values and specifying a condition.
This document provides SQL commands for describing tables, selecting data, inserting data into tables, altering tables by adding and dropping columns, deleting data, updating data, and listing databases and tables. It includes commands for describing a table, selecting all data from a table, inserting multiple records into a table in one statement, altering a table to add a date of birth column, deleting a record by primary key, and updating records by setting column values and specifying a condition.
insert all into detalis (serialno , name , course) values (5,'rojal','bio') into details(serialno , name , course) values(6,'sumit','maths')select* from dual ;
alter table tabelname /// to add column
add email varchar(200); drop email varchar(200); /// used it to drop email column
alter table table_name
add dateofbirth date; // date is the data type of date of birth
delete from details where serialno = 2;
syntex of update update tablename set columnname1='values',columnname2='values' where condition;
entity integrity constraints
1.it states that the primary key value cant be null 2.