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'

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

 

posted on 2022-02-13 19:42  癫狂编程  阅读(776)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的