-- 创建临时表
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'
Running effect picture:
You can see that only the temporary table I created is detected.
Like it if you like it ❤!