校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識(shí)庫 > sqlserver 批量刪除存儲(chǔ)過程和批量修改存儲(chǔ)過程的語句

sqlserver 批量刪除存儲(chǔ)過程和批量修改存儲(chǔ)過程的語句

熱門標(biāo)簽:沒聽見電話機(jī)器人幫你接 最新人工智能電銷機(jī)器人 陜西電銷外呼系統(tǒng)好用嗎 數(shù)字匠心電銷機(jī)器人 成都電話外呼系統(tǒng)一般多少錢 如何做地圖標(biāo)注圖鋪 al智能電話機(jī)器人 銀川高頻外呼回?fù)芟到y(tǒng)多少錢 蘭州語音外呼系統(tǒng)運(yùn)營商
修改:
復(fù)制代碼 代碼如下:

declare proccur cursor
for
select [name] from sysobjects where name like 'Foods_%'
declare @procname varchar(100)
declare @temp varchar(100)
open proccur
fetch next from proccur into @procname
while(@@FETCH_STATUS = 0)
begin
set @temp='kcb_'+@procname
EXEC SP_RENAME @procname,@temp

print(@procname + '已被刪除')
fetch next from proccur into @procname
end
close proccur
deallocate proccur

declare proccur cursor
for
select [name] from sysobjects where name like 'kcb%'
declare @procname varchar(100)
declare @temp varchar(100)
declare @temp2 varchar(100)
declare @temp3 varchar(100)
open proccur
fetch next from proccur into @procname
while(@@FETCH_STATUS = 0)
begin
set @temp3= LEN(@procname)
set @temp='kcb_'
set @temp2=RIGHT(@procname,@temp3-3)
set @temp+=@temp2
EXEC SP_RENAME @procname,@temp

print(@procname + '已被修改')
fetch next from proccur into @procname
end
close proccur
deallocate proccur

刪除:
復(fù)制代碼 代碼如下:

declare proccur cursor
for
select [name] from sysobjects where name like 'Users_%'
declare @procname varchar(100)
open proccur
fetch next from proccur into @procname
while(@@FETCH_STATUS = 0)
begin
exec('drop proc ' + @procname)
print(@procname + '已被刪除')
fetch next from proccur into @procname
end
close proccur
deallocate proccur
您可能感興趣的文章:
  • SQL Server創(chuàng)建鏈接服務(wù)器的存儲(chǔ)過程示例分享
  • 在SQL Server 2005中創(chuàng)建CLR存儲(chǔ)過程的詳細(xì)介紹
  • SQL Server 2005 創(chuàng)建簡單的存儲(chǔ)過程--總結(jié)分析
  • sqlserver2008查看表記錄或者修改存儲(chǔ)過程出現(xiàn)目錄名無效錯(cuò)誤解決方法
  • SQLServer存儲(chǔ)過程創(chuàng)建和修改的實(shí)現(xiàn)代碼

標(biāo)簽:遼源 巴彥淖爾 通化 宜春 朔州 本溪 邢臺(tái) 鹽城

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《sqlserver 批量刪除存儲(chǔ)過程和批量修改存儲(chǔ)過程的語句》,本文關(guān)鍵詞  sqlserver,批量,刪除,存儲(chǔ),;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《sqlserver 批量刪除存儲(chǔ)過程和批量修改存儲(chǔ)過程的語句》相關(guān)的同類信息!
  • 本頁收集關(guān)于sqlserver 批量刪除存儲(chǔ)過程和批量修改存儲(chǔ)過程的語句的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 吴堡县| 泊头市| 吉木萨尔县| 会同县| 乐陵市| 车险| 慈利县| 巧家县| 汶川县| 南川市| 玛多县| 吉隆县| 光泽县| 德安县| 寿阳县| 安康市| 尉氏县| 华阴市| 昌邑市| 古蔺县| 武安市| 阳朔县| 囊谦县| 元朗区| 陵川县| 界首市| 柳河县| 泰安市| 溧阳市| 东丽区| 武定县| 北安市| 巴塘县| 霍州市| 万载县| 万山特区| 延庆县| 茌平县| 宜昌市| 玉林市| 邹城市|