如何在表格中的特定位置添加列。任何一个请建议我。 [英] How to add a column at a specific location in a table .any one Please suggest me.

查看:85
本文介绍了如何在表格中的特定位置添加列。任何一个请建议我。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

ALTER TABLE Customer ADD homePhonebck VARCHAR(15) AFTER homePhone







这里我想要一个新的专栏(homePhonebck)在homephone专栏后的客户表中

please帮助




here i want a new column(homePhonebck) in customer table after homePhone column
please help

推荐答案

这是不可能的直接方式!



间接方式是:

1)使用相同的列集合和新的列表(在特定位置)创建新表格,

2)将数据复制到现有表格的新表格中,

3)删除旧表(现有表),

4)重命名新表



请使用SearchBox(在右上角)这个网站)。多次询问这个问题......

如何在sql server中的特定位置添加列 [ ^ ]

如何在sql server 2005中的特定位置添加列 [ ^ ]
It's not possible in direct way!

Indirect way is:
1) Create new table with the same collection of columns plus new one (at specific position),
2) Copy data into new table fro existing table,
3) Remove old table (existing one),
4) Rename new table

Please, use SearchBox (at the top-right corner of this site). This question was asked several times...
how to add column at specific position in sql server[^]
how to add column at a specific position in sql server 2005[^]


这篇关于如何在表格中的特定位置添加列。任何一个请建议我。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆