查询列数

Posted on 2007-01-16 12:29  DJH  阅读(160)  评论(0编辑  收藏  举报
select count(name) from syscolumns where id=(select id from sysobjects where xtype='u' and name='表名')

Copyright © 2024 DJH
Powered by .NET 9.0 on Kubernetes