登录 注册
当前位置:主页 > 资源下载 > 在SQL语言基础中,删除一个表的操

在SQL语言基础中,删除一个表的操

  • 更新:2024-07-07 10:59:08
  • 大小:5.26MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Informix - 数据库
  • 格式:PPT

资源介绍

丢弃一个表 * SQL> DROP TABLE dept30; Table dropped. 表中所有的数据和结构都被删除了. 所有未决的事务都被提交. 此表上所有的索引全部被删除. 这个操作是不能回滚的. * Informix中只有drop table;无法回滚。 Dropping a Table The DROP TABLE statement removes the definition of an Oracle8 table. When you drop a table, the database loses all the data in the table and all the indexes associated with it. Syntax where: table is the name of the table Guidelines All data is deleted from the table. Any views and synonyms will remain but are invalid. Any pending transactions are committed. Only the creator of the table or a user with the DROP ANY TABLE privilege can remove a table. The DROP TABLE statement, once executed, is irreversible. The Oracle Server does not question the action when you issue the DROP TABLE statement. If you own that table or have a high-level privilege, then the table is immediately removed. All DDL statements issue a commit, therefore making the transaction permanent. DROP TABLE table;