-- 創建臨時表 create global temporary table tem_1 (pk_tem char); -- 創建常規表 create table not_tem_1 (pk_not_tem char);
-- 判斷臨時表 select * from ALL_OBJECTS where object_name like '%TEM_1' and temporary = 'Y'; -- 查詢出所有臨時表 select * from ALL_OBJECTS where temporary = 'Y'
運行效果圖:
可以看到只有我創建的臨時表查出來了。