标签:
查询表名为tb_menu的所有列名
select
name
from
syscolumns
where
id=object_id(
‘tb_menu‘
)
select
count
(
name
)
from
syscolumns
where
id=object_id(
‘tb_menu‘
)
select
count
(syscolumns.
name
)
from
syscolumns ,sysobjects
where
syscolumns.id=sysobjects.id
and
sysobjects.
name
=
‘tb_menu‘
标签:
原文地址:http://www.cnblogs.com/yangwujun/p/5409017.html