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

SQL Server 2008 R2 將列添加到特定位置

SQL Server 2008 R2 Add column into a specific location(SQL Server 2008 R2 將列添加到特定位置)
本文介紹了SQL Server 2008 R2 將列添加到特定位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在使用 SQL Server 2008 R2,我希望將新列添加到表中列順序中的特定位置,而不是最后.我希望避免重新創建表.如何在不重新創建表格的情況下執行此操作?

I am using SQL Server 2008 R2 and I wish to add a new column into a specific spot in the column order in a table and not at the end. I wish to avoid having to recreate the table. How do I do this without recreating the table?

Table: Bob
==========
   Col1
   Col2

添加新列.

Table: Bob
==========
   Col1
   NewCol
   Col2

推薦答案

你不能.列始終添加在列列表的末尾.更改順序的唯一方法是從頭開始重新創建表.

You cannot. Column are always added at the end of the column list. The only way to change the order is to recreate the table from scratch.

話雖如此,列的實際物理順序或列定義的邏輯順序對您來說永遠無關緊要.如果您對列順序有依賴性,則您的代碼已損壞.如果您希望從列順序中獲得性能提升,那這些都是誤區.

That being said, it should never ever matter to you what is the actual physical order of the columns, nor the logical order of column definitions. If you have dependencies on column order, your code is broken. If you expect performance gains from column order, those are myths.

這篇關于SQL Server 2008 R2 將列添加到特定位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)(將月份名稱轉換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 一区二区三区四区在线视频 | 精品国产伦一区二区三区观看体验 | 亚洲自拍一区在线观看 | 狠狠涩| 久久精品国产一区二区电影 | 久久天天躁狠狠躁夜夜躁2014 | 在线成人 | 日本不卡一区 | 国产精品大全 | 麻豆久久久久久久 | 狠狠操狠狠 | 国产乱一区二区三区视频 | 96国产精品久久久久aⅴ四区 | 国产精品久久久久久久粉嫩 | 久久天天躁狠狠躁夜夜躁2014 | 欧美日韩视频在线 | 黄色小视频大全 | 日本在线视频一区二区 | 色综合视频 | 亚洲精品电影网在线观看 | 欧美一卡二卡在线观看 | 久久久久久久久久久久一区二区 | 日日干夜夜操 | 性色在线 | 久久aⅴ乱码一区二区三区 亚洲欧美综合精品另类天天更新 | 日韩精品在线免费 | 久久久久无码国产精品一区 | 免费小视频在线观看 | 国产乱一区二区三区视频 | 日日噜噜噜夜夜爽爽狠狠视频, | 久久欧美高清二区三区 | 毛片免费在线 | 国产视频一区在线观看 | 精品国产视频 | 久久综合狠狠综合久久综合88 | 国产一区二 | 国产无套一区二区三区久久 | 91久久精品国产91久久性色tv | 亚洲一区二区在线播放 | 99一区二区 | 三级特黄特色视频 |