惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
G
GRAHAM CLULEY
P
Privacy International News Feed
The Hacker News
The Hacker News
Forbes - Security
Forbes - Security
U
Unit 42
N
News and Events Feed by Topic
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cisco Blogs
A
About on SuperTechFans
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
I
Intezer
Spread Privacy
Spread Privacy
The Last Watchdog
The Last Watchdog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
F
Full Disclosure
S
Secure Thoughts
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
W
WeLiveSecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
S
Security Affairs
AWS News Blog
AWS News Blog
H
Help Net Security
The GitHub Blog
The GitHub Blog
Hacker News: Ask HN
Hacker News: Ask HN
Vercel News
Vercel News
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
S
Schneier on Security
F
Fortinet All Blogs
C
CERT Recently Published Vulnerability Notes
L
LINUX DO - 最新话题
T
Tor Project blog
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog

博客园 - 御天六龙

"AV终结者"病毒发作症状及防范措施&和杀毒有关的网页和软件都无法打开或者安装(重装系统后也一样), 无数据库日志文件恢复数据库方法两则 浅谈数据库设计技巧 恢复被置疑的数据库 update语句更新时我忘了限制条件了 更新了所有纪录 有办法恢复吗? 如何批量加密存储过程? SQL Server数据汇总完全解析 SQL脚本生成的一些BUG 老外对T-sql的研究:一个问题多种方法 使用ActiveX控件开发网页常见的问题 SQL Server中利用存储过程来高性能地进行分页 Sql server数据库开发常用汇总 小记存储过程中经常用到的本周,本月,本年函数 测试用到的SQL语句 SQL Server中全角和半角字符的比较问题 配置SQL Server 2000选项 数据库主键设计之思考 SQL Sever2000绿色版,告别软件分发时安装SQL的烦恼 数据采集服务程序--ADO连续插入记录,2天后,插入速度明显变慢,求解原因?
如何查看表结构信息
御天六龙 · 2007-10-22 · via 博客园 - 御天六龙

  SELECT    
  表名=case   when   a.colorder=1   then   d.name   else   ''   end,  
  表说明=case   when   a.colorder=1   then   isnull(f.value,'')   else   ''   end,  
  字段序号=a.colorder,  
  字段名=a.name,  
  标识=case   when   COLUMNPROPERTY(   a.id,a.name,'IsIdentity')=1   then   '√'else   ''   end,  
  主键=case   when   exists(SELECT   1   FROM   sysobjects   where   xtype='PK'   and   parent_obj=a.id   and   name   in   (  
  SELECT   name   FROM   sysindexes   WHERE   indid   in(  
  SELECT   indid   FROM   sysindexkeys   WHERE   id   =   a.id   AND   colid=a.colid  
  )))   then   '√'   else   ''   end,  
  类型=b.name,  
  占用字节数=a.length,  
  长度=COLUMNPROPERTY(a.id,a.name,'PRECISION'),  
  小数位数=isnull(COLUMNPROPERTY(a.id,a.name,'Scale'),0),  
  允许空=case   when   a.isnullable=1   then   '√'else   ''   end,  
  默认值=isnull(e.text,''),  
  字段说明=isnull(g.[value],'')  
  FROM   syscolumns   a  
  left   join   systypes   b   on   a.xusertype=b.xusertype  
  inner   join   sysobjects   d   on   a.id=d.id     and   d.xtype='U'   and     d.name<>'dtproperties'  
  left   join   syscomments   e   on   a.cdefault=e.id  
  left   join   sysproperties   g   on   a.id=g.id   and   a.colid=g.smallid      
  left   join   sysproperties   f   on   d.id=f.id   and   f.smallid=0  
  --where   d.name='要查询的表'         --如果只查询指定表,加上此条件  
  order   by   a.id,a.colorder