2006-12-22

收藏几段SQL Server语句和存储过程

来源: CSDN 作者:shell 评论 0 条
  '''NULL'''
end as col,a.colid,a.name
from syscolumns a where a.id = object_id(@tablename) and a.xtype <>189 and a.xtype <>34 and a.xtype <>35 and a.xtype <>36
)t order by colid

select @sqlstr=@sqlstr left(@sqlstr2,len(@sqlstr2)-1) ') ' left(@sqlstr1,len(@sqlstr1)-3) ')'' from ' @tablename
-- print @sqlstr
exec( @sqlstr)
set nocount off
end


共16页: 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] 16 下一页
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:精妙的SQL和SQL SERVER 与ACCESS、EXCEL的数据导入导出转换  
下一篇:Oracle与SQL Server在企业应用的比较
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号