-- 建立臨時表
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'
運作效果圖:
可以看到隻有我建立的臨時表查出來了。

喜歡的點個贊❤吧!