You are on page 1of 1

desc table_name to see the table without values

select * from table name


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.

show databases;
use abhishek;
show tables;

You might also like