select count(*) from syscolumns where id=object_id('表名') 转载于:https://www.cnblogs.com/dongpo888/archive/2011/05/11/2043370.html