sql 查询表的字段数量

select COUNT(a.name) from sys.all_columns a,sys.tables b
where a.object_id=b.object_id and b.name='table_name'

转载于:https://www.cnblogs.com/hasaki/p/6485171.html

你可能感兴趣的:(sql 查询表的字段数量)