久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

SQL Server 查詢處理器耗盡內(nèi)部資源

SQL server query processor ran out of internal resources(SQL Server 查詢處理器耗盡內(nèi)部資源)
本文介紹了SQL Server 查詢處理器耗盡內(nèi)部資源的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

查詢:

update mytable 
    set mycol = null
    where id in (
        583048,
        583049,
        ... (50000 more)
)

留言:

查詢處理器耗盡了內(nèi)部資源,無法生成查詢計劃.這是一個罕見的事件,只預期極其復雜的查詢或引用非常大的查詢表或分區(qū)的數(shù)量.請簡化查詢.如果你認為您錯誤地收到了此消息,請聯(lián)系客戶支持服務以獲取更多信息.

The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

我的查詢很簡單,我應該如何編寫它才能正常工作?

My query is very simple, how should I write it so it works ok?

推薦答案

將值列表插入到 #temp 表中,然后在其上使用 in.

Insert the list of values into a #temp table then use in on that.

如解釋在這個答案中,大量的 IN 值會導致它在擴展為 OR

As explained in this answer a large number of IN values can cause it to run out of stack as they get expanded to OR

另見相關(guān)連接項

這篇關(guān)于SQL Server 查詢處理器耗盡內(nèi)部資源的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉(zhuǎn)換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創(chuàng)建視圖?)
Create calculated value based on calculated value inside previous row(根據(jù)前一行內(nèi)的計算值創(chuàng)建計算值)
How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對?) - IT屋-程序員軟件開發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉(zhuǎn)換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 欧美无乱码久久久免费午夜一区 | 这里精品 | 久草a√ | 在线亚洲欧美 | 精品国产一区二区国模嫣然 | 2022精品国偷自产免费观看 | 日本一区二区三区四区 | 成人啊啊啊 | 狠狠爱免费视频 | 激情视频中文字幕 | 久久精品99久久 | 国产激情一区二区三区 | 欧美一区精品 | 在线看免费 | 在线精品一区二区 | 日韩在线小视频 | 一级看片免费视频囗交动图 | 色99视频| 手机看片1| 免费在线h视频 | 一区在线免费视频 | 国产精华一区 | 亚洲九九精品 | 日日淫| 国产精品久久久久久久7电影 | 一区二区电影网 | 天天干夜夜操 | 国产精品精品视频一区二区三区 | 久久男人 | 欧美二区在线 | av播播| 日本一二区视频 | 男女一区二区三区 | 精品日韩一区 | 久久久噜噜噜久久中文字幕色伊伊 | 色欧美片视频在线观看 | 精品国产乱码久久久久久88av | 毛片大全 | 国产蜜臀97一区二区三区 | 夜夜爽99久久国产综合精品女不卡 | 美女天天操 |