Oracle 数据库利用sql语句判断某个表是否是临时表实例演示,达梦数据库查询出所有临时表

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

运行效果图:
可以看到只有我创建的临时表查出来了。

在这里插入图片描述
喜欢的点个赞❤吧!

猜你喜欢

转载自blog.csdn.net/qq_38161040/article/details/108368160