一些有用的SQL Server语句和存储过程[8]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 applebbs 的 blog

0">select d.name tablename,a.name fieldname,b.name typename,a.length length,a.isnullable is_null into #t
110
111from  syscolumns  a,  systypes b,sysobjects d  
112
113where  a.xtype=b.xusertype  and  a.id=d.id  and  d.xtype='u' 
114
115 
116
117declare read_cursor cursor
118
119for select tablename,fieldname from #t
120
121 
122
123select top 1 '_tablename                     ' tablename,
124
125        &n

本文关键:一些有用的SQL Server语句和存储过程
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top