if we fire delete query and in 2nd session if we fire select query then its going to show all the records bcoz after 1st we havent fired commit statement may be i m wrong
If we delete the contents of a table and log out then there is an autocommit performed.So although we are not performing commit.A commit is performed automatically by oracle server.So in the next session if we try to select the datas of that table we won't be able to see anything.Thank you.
WHEN WE SAY DELETE FROM EMP; (say) ALL ROWS WILL BE DELETED AND THEN IF WE SAY SELECT * FROM EMP THEN WE GET NO ROWS SELECTED AS THE TABLE DOESN'T CONTAIN ANY DATA.
AFTER ENTERING THE DELETE COMMAND IF WE SAY ROLLBACK THEN ROLLBACK IS DONE AND NOW IF WE SAY SELECT * FROM EMP NOW ALL ROWS WILL BE DISPLAYED . HOPE U GOT THE ANSWER .
ANYWAY PLZ USERS IF U ARE CONFIDENT OF ANSWERS THEN ONLY POST THE SAME AS LITTLE KNOWLEDGE IS DANGEROUS AS UR JEOPARDING THE LIFE OF THE PEOPLE WHO ARE NEW TO ORACLE OR U HAVE CHANGED THEIR BACKGROUND TO IT PLZ CONFIRM IT OR IF UR SURE THEN POST UR ANSWERS.
Delete is a DML statement.If all the Data in a table is deleted in 1 session it will not be refelected in Session 2.if it is to be refeleted on 2nd Session we have to COMMIT it 1st in the 1st Session.
Well here we are talking about two different sessions :-If one Session1 deletes all the rows of any table and dosen't fire commit then on the other Session2 user will see all the rows. This is the right answer...