第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關(guān)鍵字 'for' 附近有語法錯誤?

關(guān)鍵字 'for' 附近有語法錯誤?

慕姐4208626 2022-09-16 11:11:31
declare @PtnLimitTime datetimedeclare @cursor CURSOR forSelect PtnLimitTime from tblPlanTableNameopen @cursorfetch next from @cursor into @PtnLimitTimewhile(@@fetch_status=0)beginprint @PtnLimitTimefetch next from @cursor into @PtnLimitTimeendclose @cursordeallocate @cursor錯誤提示:消息 156,級別 15,狀態(tài) 1,第 3 行關(guān)鍵字 'for' 附近有語法錯誤。錯誤提示:消息 156,級別 15,狀態(tài) 1,第 2行關(guān)鍵字 'for' 附近有語法錯誤。弄錯提示了。
查看完整描述

2 回答

?
肥皂起泡泡

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超6個贊

把cursor名前面的@去掉,如下:

declare cursor_1 CURSOR for
Select PtnLimitTime from tblPlanTableName
open cursor_1
fetch next from cursor_1 into @PtnLimitTime
while(@@fetch_status=0)begin
print @PtnLimitTime
fetch next from cursor_1 into @PtnLimitTime
end
close cursor_1
deallocate cursor_1

查看完整回答
反對 回復(fù) 2022-09-21
?
智慧大石

TA貢獻(xiàn)1946條經(jīng)驗(yàn) 獲得超3個贊

declare @PtnLimitTime datetime
declare cursor1 CURSOR for
Select PtnLimitTime from tblPlanTableName
open cursor1
fetch next from cursor1 into @PtnLimitTime
while(@@fetch_status=0)begin
print @PtnLimitTime
fetch next from cursor1 into @PtnLimitTime
end
close cursor1
deallocate cursor1


查看完整回答
反對 回復(fù) 2022-09-21
  • 2 回答
  • 0 關(guān)注
  • 226 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號