摘要: 相同点,使用drop delete truncate 都会删除表中的内容drop table 表名delete from 表名(后面不跟where语句,则也删除表中所有的数据)truncate table 表名区别首先delete 属于DML,当不commit时时不生效的而truncate 和 drop 则是直接生效的,不能回滚。truncate 和 delete 不删除表的结构,只是针对表中的内容删除drop语句将删除表的结构,被依赖的约束(constrain),触发器(trigger),索引(index); 依赖于该表的存储过程/函数将保留,但是变为invalid状态.truncate 会 阅读全文
posted @ 2012-09-11 22:37 斯皮尔伯伯 阅读(53374) 评论(0) 推荐(0) 编辑
摘要: 今天,开发团队里的几位同事向我反映,在使用PL/SQL Developer工具登陆一个新创建的用户进行查询时,报出以下错误(PL/SQL Developer版本:7.1.5 1403):Dynamic Performance Tables not accessible,Automatic Statistics disabled for this sessionYou can disable statistics in the preference menu, or obtain selectpriviliges on the V$session,V$sesstat and V$statname 阅读全文
posted @ 2012-09-11 22:29 斯皮尔伯伯 阅读(1311) 评论(0) 推荐(0) 编辑