问题描述
我想在特定列的现有表格中添加新列
位置...
现有表格定义:
MyTable(Col1,Col2,Col3)
我想在MyTable中添加一个新列,新列的位置是
$在Col2和Col3之间的b $ b:
MyTable(Col1,Col2,New_Column,Col3)
" Alter Table MyTable Add Column ..." ;声明将列添加到
结尾(即MyTable(Col1,Col2,Col3,New_Column))。
我可以删除表并重新创建它,但我想要知道是否可以以任何其他方式完成
。谢谢你的帮助。
A Carter
为什么你想要除了ALTER ADD以外的任何其他方式?
这是即时的和在线....
干杯
Serge
-
Serge Rielau
DB2解决方案开发
IBM多伦多实验室
IOD会议
表由一组列组成。因此,列顺序
在概念上完全无关紧要。您可以在查询中选择
列的任何订单。
-
Knut Stolze
DB2信息集成开发
IBM德国
Why would you want any other way than ALTER ADD?
It''s instantanious and online....
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
A table is comprised of a set of columns. Therefore, the column order is
completely irrelevant conceptually. You can choose any order of the
columns in your query.
--
Knut Stolze
DB2 Information Integration Development
IBM Germany
这篇关于将新列添加到表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!