本文介紹了SQL 中的腳本被編譯或執行的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
這有點像存在的懷疑...
This is like a little existential doubt...
在 SQL 中運行腳本的正確說法是什么?
Which is the right way to say that you run a script in SQL?
我編譯了腳本 xxxx
I compiled the script xxxx
我執行了腳本 xxxx
I executed the script xxxx
我知道問這個有點奇怪和菜鳥,但我需要知道.
I know is a little weird and noob to ask this, but I need to know.
我很確定第二種方法是正確的,但我需要更多的意見.
I'm very sure the second way is the correct one, but I need more opinions.
非常感謝.
推薦答案
這取決于您實際想說的內容.
It depends on what you actually want to say.
SQL Server 中的所有查詢在執行之前都遵循相同的過程.
All queries in SQL Server follow the same process before they are executed.
- Parse - 語句被分解為單獨的單詞.在此步驟中檢測到語法錯誤和拼寫錯誤.
- 驗證(又名解析)——確保存在對象的名稱以及正確的所有權權限.
- 優化 - SQL Server 探索了執行查詢的不同方式.
- 編譯 - SQL Server 生成執行計劃(執行樹的二進制表示)
最后
- 執行
這篇關于SQL 中的腳本被編譯或執行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!