Guest User

Untitled

a guest
Aug 11th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. select * from tab
  2. create table Akstudent(
  3. sname char(20),
  4. Rollno number(6),
  5. Regno number(6),
  6. contact number(10));
  7. desc akstudent
  8. alter table Akstudent add(Address varchar(100));
  9. alter table Akstudent add(Email_id varchar(100));
  10. alter table Akstudent add(Address1 varchar(100));
  11. alter table Akstudent drop column Address1;
  12. alter table Akstudent drop column Emailid;
  13. alter table Akstudent modify(sname varchar(30));
  14. insert into Akstudent values('Akash1','306267','141140','8149771771','shubhashri colony n6','[email protected]');
  15. insert into Akstudent values('Akash2','306268','141141','8149771771','shubhashri colony n6','[email protected]');
  16. insert into Akstudent values('Akash3','306269','141142','8149771771','shubhashri colony n6','[email protected]');
  17. insert into Akstudent values('Akash4','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  18. insert into Akstudent values('Akash5','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  19. insert into Akstudent values('Akash6','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  20. insert into Akstudent values('Akash7','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  21. insert into Akstudent values('Akash8','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  22. insert into Akstudent values('Akash9','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  23. insert into Akstudent values('Akash10','306270','141143','8149771771','shubhashri colony n6','[email protected]');
  24. select * from Akstudent
  25. update Akstudent set sname='Akash Katare' where sname='Akash';
  26. select * from Akstudent where regno between 141140 and 141141;
Advertisement
Add Comment
Please, Sign In to add comment