问题是:
DW1_ tables
来自USER_OBJECTS
ISO 标准中的表名、创建日期和时间的列表。
这就是我到目前为止所拥有的,但它不起作用。
select table_name, to_char(create_date, 'yyyy-mm-dd') from all_tables
where table_name like 'DW1%'
group by table_name;
它说 create_date 是无效的标识符。
谁能帮我解决这个问题?
这是你要找的吗?
select object_name, created
from user_objects
where object_name LIKE 'DW1%'
and object_type = 'TABLE';
select object_name, to_char(created, 'yyyy-mm-dd') AS created -- 'AS' is optional
from user_objects
where object_name like 'EMP%' -- replace with your table
/
尝试这个
SELECT object_name tablename, created FROM dba_objects
WHERE object_name like 'DW1%'
and object_type = 'TABLE'