久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

查找sql表里含有某個字段的過程

 自信開朗 2015-04-29
declare @tablename varchar(50),@sql varchar(3000)
declare table1 cursor for 
select object_name(a.id)as tablename from syscolumns a,
sysobjects b,
systypes c
where a.id=b.id
and a.xtype=c.xtype
and b.xtype='u'
and c.name in('varchar','nvarchar','char','nchar','text','ntext')and object_name(a.id)<>'t'
and a.name='gsbh' order by object_name(a.id)
open table1
fetch next from table1 into @tablename
 while @@FETCH_STATUS = 0
  begin
    select @sql='update  '+@tablename+' set gsbh=''117'' where gsbh=''118'''
    exec(@sql)
    fetch next from table1 into @tablename
   end

close table1
deallocate table1





    本站是提供個人知識管理的網(wǎng)絡存儲空間,,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式,、誘導購買等信息,,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請點擊一鍵舉報,。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多