如果我使用 Oracle 数据库,删除语句是什么?

What is the delete statement if i using Oracle database?

当我编写代码删除 table 行中的数据时,它没有删除

这是我的代码`

SQL> select * from bill;

   PID        TID    BILL_NO       CODE                                     

     1          1          5          2                                     
     1          2          3                                                

SQL> delete from bill where bill_no in(5,3);

2 rows deleted.

SQL> select * from bill;

no rows selected

SQL> spool off;
SQL> select * from bill;

   PID        TID    BILL_NO       CODE                                     

     1          1          5          2                                     
     1          2          3                                                

SQL> spool off;`

有什么问题吗? 顺便说一下,我是 oracle 的初学者

需要提交 DML 命令:

  commit;

Oracle 和其他关系数据库支持事务。事务意味着您必须提交更改或回滚更改,分别使用 COMMITROLLBACK 命令完成。通常程序在类似 activity 退出时执行隐式 ROLLBACK 以及 Oracle 数据库在断开连接时对未完成的更改发出 ROLLBACK

SQL> select * from bill;

PID        TID    BILL_NO       CODE                                     

 1          1          5          2                                     
 1          2          3                                                

SQL> delete from bill where bill_no in(5,3);

2 rows deleted.

SQL> COMMIT;