查看一张表中有多少个字段
一、oracle为例
1、oracle版本是19C
select * from v$version;

2、查看一张表中有多少个字段
以sys_role表为例
select count(*) from user_tab_columns where table_name=upper('sys_role') ;

二、MySQL
1、MySQL版本是5.7
SELECT VERSION() FROM DUAL;

2、查看一张表中有多少个字段
SELECT COUNT(*)
FROM information_schema.columns
WHERE table_name = 't_file_info'

浙公网安备 33010602011771号