MySQL correction Column

Source: Internet
Author: User
Tags table definition
MySQL ALTER column ALTERTABLE: add, modify, and delete table columns, constraints, and other table definitions. View column: desc table name; Modify Table Name: altertablet_bookrenametobbb; add column: altertable table name addcolumn column name varchar (30); delete column: altertable table name dropcolumn name; Modify column name MySQL: alte

Alter table: add, modify, and delete TABLE columns, constraints, and other TABLE definitions. View column: desc table name; Modify table Name: alter table t_book rename to bbb; add column: alter table name add column name varchar (30); delete column: alter table Name drop column name; Modify column name MySQL: alte

Modify MySQL Columns
Alter table: add, modify, and delete TABLE columns, constraints, and other TABLE definitions. View column: desc table name; Modify table Name: alter table t_book rename to bbb; add column: alter table name add column name varchar (30); delete column: alter table Name drop column name; Modify column name MySQL: alter table bbb change nnnnn hh int; Modify column name SQLServer: exec sp_rename't _ student. name ', 'nn', 'column '; modify the column name Oracle: alter table bbb rename column nnnnn to hh int; modify the column attribute: alter table t_book modify name varchar (22 ); sp_rename: the built-in Stored Procedure of SQL Server, which is used to modify the table definition.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.