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

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

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

問(wèn)題描述

我正在使用 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ū)δ鷣?lái)說(shuō)永遠(yuǎn)無(wú)關(guān)緊要.如果您對(duì)列順序有依賴性,則您的代碼已損壞.如果您希望從列順序中獲得性能提升,那這些都是誤區(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 將列添加到特定位置的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個(gè)子標(biāo)記轉(zhuǎn)換為具有多個(gè)分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個(gè)表創(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?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對(duì)?) - IT屋-程序員軟件開發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉(zhuǎn)換為日期/月份編號(hào)(問(wèn)題和答案的組合))
主站蜘蛛池模板: 一区二区视频在线观看 | 91色网站| 精品视频在线观看 | 一区二区视频 | www.亚洲.com | 午夜精品久久久久久久久久久久 | www.久草.com| 国产欧美日韩一区二区三区在线 | 亚洲精品一区二区三区四区高清 | 国产精品久久久久久影院8一贰佰 | 欧美一区二区三区国产精品 | 91超碰caoporn97人人 | 天天干天天爽 | 久草视频在线播放 | 一区二区在线免费观看 | 国产一级片免费在线观看 | 懂色av色香蕉一区二区蜜桃 | 国产一区在线免费观看 | 国产一区二区三区久久 | 成人片免费看 | 欧美日韩亚洲国产 | www.v888av.com| 成人一区二区三区在线观看 | 丁香婷婷在线视频 | 欧美人妖网站 | 国产精品久久国产精品久久 | 日韩国产精品一区二区三区 | 人人做人人澡人人爽欧美 | 国产激情综合五月久久 | 欧洲精品一区 | 成人伊人 | 99热视| 免费观看一级黄色录像 | 国产999精品久久久 午夜天堂精品久久久久 | av大片| 一区二区久久电影 | 精品1区2区 | www.国产 | 天天操天天玩 | 国产aⅴ爽av久久久久久久 | 久久伊人精品一区二区三区 |