1
ROLLBACK命令我創建的表使用Oracle
SQL>CREATE TABLE Student
(
StudID NUMBER(6),
StudName VARCHAR2(25),
JoinDate DATE
);
Table created.
SQL>INSERT INTO Student
VALUES (123,'JOHN',SYSDATE);
1 row created.
SQL>DELETE Student;
1 row deleted.
我怎樣才能拿回行? 如果我使用
SQL>ROLLBACK;
Rollback complete.
但在那之後
SQL>SELECT * FROM Student;
no rows selected.
這是爲什麼來?
相反的SQL>刪除學生;我用SQL> DELETE FROM Student – bibhudash
WHERE StudID = 123; – bibhudash
刪除1行。然後使用ROLLBACK;然後SELECT * FROM Student;它的工作原理。 – bibhudash