Commands of DBMS SQL
Commands of DBMS SQL
===> select * from table ; {to show the table present on the server at given time}
===> drop table [table name] ; {to drop any existing table}
===> select * from [table name] ; {to add data to existing table created}
insert into program_0020 values ('P001','BSC-IT','Prashant');
insert into stud_0020 values ('P001','BSC-IT','Prashant');
insert into [table name] values ('P001','BSC-IT','Prashant');
insert into [table name] values ('P001','BSC-IT','Prashant');
===> update program_0020 set prog_id = 'P002' where prog_name = 'BMM' ; {to change
the value inside the table}
===> create table stud_cpy_0020 as select * from stud_0020 {to create a copy table
from existing table}
===> alter table stud_0020 modify fees_paid number(10,2); {to alter any table
feild}
===> alter table stud_cpy_0020 drop column stud_add; {to drop any particular
existing feild from table}
===> drop table program_cpy_0020; {drop/delete the whole table, but structure
remains}
===> truncate table stud_cpy_0020; {delete the row/data from the table , still
structure remains}