0% found this document useful (0 votes)
26 views2 pages

DML

Uploaded by

Amanpreet Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

DML

Uploaded by

Amanpreet Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL> select * from stu19;

SNO SNAME JDATE CONTNO DEPT


---------- -------------------- --------- ---------- ----------
1 Amanpreet 09-OCT-00 9876357733
2 Jasleen 29-JUN-01 9123729023
3 Sampriti 12-DEC-00 9878899033
4 Riddhi 05-JAN-01 9234569813
5 Khushi 05-APR-00 9000099977

SQL> insert into stu19 values(7,'Shivangi','12-JUL-2000',9988776655);


insert into stu19 values(7,'Shivangi','12-JUL-2000',9988776655)
*
ERROR at line 1:
ORA-00947: not enough values

SQL> insert into stu19 values(7,'Shivangi','12-JUL-2000',9988776655,NULL);

1 row created.

SQL> select * from stu19;

SNO SNAME JDATE CONTNO DEPT


---------- -------------------- --------- ---------- ----------
1 Amanpreet 09-OCT-00 9876357733
2 Jasleen 29-JUN-01 9123729023
3 Sampriti 12-DEC-00 9878899033
4 Riddhi 05-JAN-01 9234569813
5 Khushi 05-APR-00 9000099977
7 Shivangi 12-JUL-00 9988776655

6 rows selected.

SQL> update stu19 set sno=6 where sno=7;

1 row updated.

SQL> select * from stu19;

SNO SNAME JDATE CONTNO DEPT


---------- -------------------- --------- ---------- ----------
1 Amanpreet 09-OCT-00 9876357733
2 Jasleen 29-JUN-01 9123729023
3 Sampriti 12-DEC-00 9878899033
4 Riddhi 05-JAN-01 9234569813
5 Khushi 05-APR-00 9000099977
6 Shivangi 12-JUL-00 9988776655

6 rows selected.

SQL> delete from stu19 where sno=6;

1 row deleted.

SQL> select * from stu19;

SNO SNAME JDATE CONTNO DEPT


---------- -------------------- --------- ---------- ----------
1 Amanpreet 09-OCT-00 9876357733
2 Jasleen 29-JUN-01 9123729023
3 Sampriti 12-DEC-00 9878899033
4 Riddhi 05-JAN-01 9234569813
5 Khushi 05-APR-00 9000099977

SQL> spool off;

You might also like