- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
alter语法(Alter syntax)
alter语法(Alter syntax)
Usage of the alter statement
Usage of the alter statement
If you need to modify the structure, use the alter statement, as follows:
The ALTER TABLE statement is used to modify the design of the existing table.
Syntax: ALTER, TABLE, table, ADD, field, COLUMN, type[(size)] [NOT, NULL], [CONSTRAINT, index]
ALTER, TABLE, table, ADD, CONSTRAINT, multifieldindex
ALTER, TABLE, table, DROP, COLUMN, field
ALTER, TABLE, table, DROP, CONSTRAINT, indexname
Explanation: the table parameter is used to specify the name of the table to be modified.
ADD COLUMN is the reserved word for SQL, which adds fields to the table.
ADD CONSTRAINT is the reserved word for SQL, which uses the index to add indexes to the table.
DROP COLUMN is the reserved word for SQL, which uses it to delete fields from the table.
DROP CONSTRAINT is the reserved word for SQL, which uses the index to delete the index from the table.
Field specifies the name of the field to add or delete.
The type parameter specifies the data type of the new field.
The size parameter is used to specify the length of the text or binary field.
The indexname parameter specifies the name of the multiple field index to be deleted.
Sql*plus or third parties can run SQL statements of the program login database:
ALTER TABLE (table name) ADD (column name data type);
ALTER TABLE (table name) MODIFY (column name data type);
ALTER TABLE (table name), RENAME COLUMN (current column name), TO (new column name);
ALTER TABLE (table name), DROP, COLUMN (column name);
ALTER TABLE (current table name) RENAME TO (new table name);
Such as:
Alter, Table, Employ, Add (weight, Number (38,0));
Alter, Table, Employ, Modify (weight, Number (13,2));
Alter, Table, Emp, Rename, Cloumn, weight, To, weight_new;
ALTER, TABLE, EMP, DROP, COLUMN, weight_new;
ALTER, TABLE, bouns, RENAME, TO, bonus_new;
Add a column:
ALTER TABLE table name ADD (column name data type);
Such as:
ALTER, TABLE, EMP, ADD (weight, NUMBER (38,0));
Modify the data type o
您可能关注的文档
- 20个室内设计师应该掌握的基本技能(The basic skills that 20 interior designers should master).doc
- 20个最靠谱的赚钱方法 让你一夜成富翁(20 of the most reliable ways to make money make you a millionaire overnight).doc
- 20条最实用的准则 穷人巧装修省钱又省事(20 of the most practical criteria, the poor clever decoration, save money and save time).doc
- 20条验收新房的经验(20 acceptance of new homes experience).doc
- 20石膏板吊顶工程(20 gypsum board ceiling works).doc
- 20第十二章 祖国完全统一的构想(The 20 and twelfth chapters are the concept of the complete reunification of the motherland).doc
- 20词汇解释-集装箱(20 vocabulary explanation - container).doc
- 215电动机及其附属设备安装工工艺(215 motor and its equipment installation process).doc
- 20世纪90年代以来美国和日本产业政策调整评析(Analysis of industrial policy adjustment in the United States and Japan since 1990s).doc
- 208处国家重点风景名胜区(208 national key scenic spots).doc
- access重点总结(Access key summary).doc
- alg-算法(ise - 算法).doc
- am3517板整个开发过程记录(The am3517 board records the entire development process).doc
- android 4.0自带软件精简列表(Android 4 comes with software to streamline listings).doc
- android内存管理分析(Android memory management analysis).doc
- android动画开发(Android动画开发).doc
- android开发教程之智能交通之路(Android development tutorial on the road of Intelligent Transportation).doc
- android可删软件集合(Android Software set that can be deleted).doc
- android开发教程之使用 eclipse 和 android 小部件进行 android 开发...(Android开发教程之使用Eclipse和Android小部件进行Android开发…).doc
- ansys help流固耦合算例fluid_structure(内含解析)(ANSYS的帮助流固耦合算例fluid_structure(内含解析)).doc
文档评论(0)