当前位置:   article > 正文

user_objects——查看用户的所有对象!_user_objects表查询出来内容说明

user_objects表查询出来内容说明

查看表T是否被截断过:

  1. SQL> select OBJECT_ID,DATA_OBJECT_ID,OBJECT_NAME from user_objects where OBJECT_NAME = 'T';
  2. OBJECT_ID DATA_OBJECT_ID OBJECT_NAME
  3. ---------- -------------- -------------------------
  4. 73463 73463 T
  5. SQL> truncate table t;
  6. 表被截断。
  7. SQL> select OBJECT_ID,DATA_OBJECT_ID,OBJECT_NAME from user_objects where OBJECT_NAME = 'T';
  8. OBJECT_ID DATA_OBJECT_ID OBJECT_NAME
  9. ---------- -------------- -------------------------
  10. 73463 73486 T
  11. SQL> truncate table t;
  12. 表被截断。
  13. SQL> select OBJECT_ID,DATA_OBJECT_ID,OBJECT_NAME from user_objects where OBJECT_NAME = 'T';
  14. OBJECT_ID DATA_OBJECT_ID OBJECT_NAME
  15. ---------- -------------- -------------------------
  16. 73463 73486 T
  17. SQL> truncate table t;
  18. 表被截断。
  19. SQL> select OBJECT_ID,DATA_OBJECT_ID,OBJECT_NAME from user_objects where OBJECT_NAME = 'T';
  20. OBJECT_ID DATA_OBJECT_ID OBJECT_NAME
  21. ---------- -------------- -------------------------
  22. 73463 73486 T
可以看见在表没有被truncate之前,OBJECT_ID和DATA_OBJECT_ID是一样的。在表T被truncate之后,OBJECT_ID和DATA_OBJECT_ID就不一样了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/247352
推荐阅读
相关标签
  

闽ICP备14008679号