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

SQL Server 查詢處理器耗盡內部資源

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

問題描述

查詢:

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

留言:

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

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

另見相關連接項

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

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

相關文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創建視圖?)
Create calculated value based on calculated value inside previous row(根據前一行內的計算值創建計算值)
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屋-程序員軟件開發技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 一区二区三区四区五区在线视频 | 午夜一级大片 | 久久国产精品视频 | 成人h动漫亚洲一区二区 | 国产98色在线 | 日韩 | 日韩国产欧美在线观看 | 最新黄色在线观看 | 手机三级电影 | 欧美在线| 成人在线精品视频 | 日韩免费视频一区二区 | 成人精品毛片 | a毛片| 欧美日韩在线一区二区三区 | 欧美日韩视频在线播放 | 国产一区二区三区四区在线观看 | 久久久精品一区 | 黄网站涩免费蜜桃网站 | 免费的色网站 | 欧美a级成人淫片免费看 | 久久久久久久久久久久久9999 | 久久精品亚洲 | 久草在线中文888 | 91亚洲国产成人精品一区二三 | 日日操夜夜干 | 视频1区| 国产在线h | 成人福利网站 | 911网站大全在线观看 | 国产亚洲欧美在线 | 人人干人人艹 | 成人在线看片 | 偷拍亚洲色图 | 午夜视频在线观看网址 | 欧美aⅴ| 污书屋 | h视频亚洲| 91国内产香蕉| 日韩精品在线一区 | 亚洲一区二区三区 | 97精品久久 |