博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  99 随笔 :: 4 文章 :: 72 评论 :: 2 引用

11 2007 档案

posted @ 2007-11-29 10:39 黑米 阅读(731) | 评论 (0) 编辑

摘要: 本代码适用于: SQLSERVER2000/2005 SQL语句如下: select c.name, t.name as type, c.length ,(case t.name when 'nvarchar' then c.length/2 when 'nchar' then c.length/2 else c.length end) as reallength from syscolumns c join systypes t on c.xtype=t.xtype where t.name <> 'sysname' and c.id=object_id('Table1')阅读全文
posted @ 2007-11-06 11:12 黑米 阅读(660) | 评论 (4) 编辑