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

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

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

問題描述

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

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

推薦答案

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

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.

話雖如此,列的實(shí)際物理順序或列定義的邏輯順序?qū)δ鷣碚f永遠(yuǎn)無關(guān)緊要.如果您對列順序有依賴性,則您的代碼已損壞.如果您希望從列順序中獲得性能提升,那這些都是誤區(qū).

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.

這篇關(guān)于SQL Server 2008 R2 將列添加到特定位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)(將每個子標(biāo)記轉(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)的計(jì)算值創(chuàng)建計(jì)算值)
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)換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 激情影院久久 | 欧美成人精品一区二区男人看 | 欧美一区二区三区在线观看视频 | 操人视频在线观看 | 久久久女女女女999久久 | 欧美日韩久久精品 | 成人免费大片黄在线播放 | 日韩av在线一区 | 99亚洲精品 | 日韩在线| 中文字幕av网站 | 久久黄色网 | 欧美精品在线免费观看 | 久色视频在线观看 | 91精品中文字幕一区二区三区 | av大片 | 国产精品一区在线观看 | 日韩毛片免费看 | 紧缚调教一区二区三区视频 | 久久久妇女国产精品影视 | 爱爱视频在线观看 | 国产一区二区三区高清 | 国产免费av在线 | 91精品国产综合久久久动漫日韩 | 欧美激情在线观看一区二区三区 | 欧美专区日韩 | 欧美极品一区二区 | 亚洲成网站 | 免费在线观看成年人视频 | 欧美一区精品 | 日韩中文在线观看 | 懂色av色香蕉一区二区蜜桃 | 精品国产乱码久久久久久丨区2区 | 美女一区二区在线观看 | 欧美专区日韩 | 国产精品久久久久久久免费大片 | 午夜精品一区二区三区在线观看 | 成人福利网| 一区二区视频在线 | 亚洲色欲色欲www | 福利视频一区二区 |