Oracle database uses sql statement to determine whether a table is a temporary table instance demonstration, and Dameng database queries all temporary tables

-- 创建临时表
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.

Insert picture description here
Like it if you like it ❤!

Guess you like

Origin blog.csdn.net/qq_38161040/article/details/108368160