达梦数据库 获取所有表,表的字段

1,获取 某个模式下的所有数据表

 

select TABLE_NAME  from dba_tables  where owner='模式名'

 

2,获取表的所有字段

select * from all_tab_columns where owner='模式名' and Table_Name='表名'

你可能感兴趣的:(达梦数据库)