oracle怎么查询多少列
在oracle中,可以利用select语句配合“count()”查询表中有多少列,语法为“select count() from user_tab_cols where table_name=表名”;“user_tab_cols”还可以用于查询隐藏列,并且表名中的英文应该
在oracle中,可以利用select语句配合“count(*)”查询表中有多少列,语法为“select count(*) from user_tab_cols where table_name='表名'”;“user_tab_cols”还可以用于查询隐藏列,并且表名中的英文应该使用大写字母。
本教程操作环境:windows10系统、Oracle 12c版、Dell G3电脑。
oracle怎么查询多少列
oracle查询多少列:
示例如下:
扩展知识:
Oracle中user_tab_cols、user_tab_columns的差异
两表均可用于查询用户下Table(表)、View(视图)、Clusters(聚簇表)
差异