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

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

SQL Server 2008 R2 Add column into a specific location(SQL Server 2008 R2 將列添加到特定位置)
本文介紹了SQL Server 2008 R2 將列添加到特定位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(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)的計算值創(chuàng)建計算值)
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)換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: av网站在线免费观看 | 91精品国产99 | 精品国产一区二区三区免费 | 色综合久久88色综合天天 | 日韩三级 | 亚洲视频在线一区 | 久久99精品久久久久久 | 国产在线精品一区二区 | 天天天天操 | av资源中文在线天堂 | 亚洲高清av| 爱草在线 | 夜夜操天天操 | 免费精品视频在线观看 | 午夜精品一区二区三区在线观看 | 亚洲香蕉在线视频 | 91传媒在线观看 | 亚洲男人天堂 | 黄色大片在线视频 | 久久精品成人热国产成 | 91久久 | 韩日有码| 精品国产一区二区三区在线观看 | 卡通动漫第一页 | 亚洲精品国产电影 | 日韩中文字幕在线观看视频 | 精品九九久久 | 国产成人亚洲精品自产在线 | 久草视频在线播放 | 欧美一级片在线看 | 黄色免费在线网址 | 特一级黄色毛片 | 999热精品视频 | 欧美一级在线免费 | 久久久久久免费免费 | 精品视频一区二区三区 | 久久99视频免费观看 | 亚洲国产精品久久 | 欧美性受xxx | 一区二区三区四区在线视频 | 欧美日韩高清 |