Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于数据分析的目的,我只需要了解给定表中的列是否填充了值。为此,我需要获取给定 db2 表的列列表和不同值计数。
如果您使用 Db2 for Linux、Unix 或 Windows,您可以尝试
SELECT TABSCHEMA, TABNAME, COLNAME, COLCARD FROM SYSCAT.COLUMNS