select count(*) from syscolumns where id in (select id from sysobjects where name = '表名')
查询指定表有多少字段,并打印出来
select * from syscolumns where id in (select id from sysobjects where name = '表名')
select count(*) from syscolumns where id in (select id from sysobjects where name = '表名')
select * from syscolumns where id in (select id from sysobjects where name = '表名')
精妙SQL语句整理 (2007-8-10 15:35:36)
SEO工具-站长必备 (2007-8-10 10:35:52)
用GetRows() 抽取10万条数据 (2007-8-10 2:50:35)
GetRows和NextRecordset (2007-8-10 2:45:0)
一个高效的数据分页的存储过程 可以轻松应付百万数据 (2007-8-10 2:34:17)
千万数量级分页存储过程 (2007-8-10 2:31:8)
Asp存储过程使用大全 (2007-8-10 2:27:57)
用SQL语句备份还愿SQL数据库 (2007-8-9 0:21:18)
SQL Server 数据库管理常用的SQL和T-SQL语句 (2007-8-8 23:22:35)
instead触发器例子 (2007-8-7 22:20:23)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。