About 452,000 results
Open links in new tab
  1. MySQL ALTER TABLE Statement - W3Schools

    MySQL ALTER TABLE Statement. The ALTER TABLE statement is used to add, delete, or modify columns in an existing table. The ALTER TABLE statement is also used to add and drop various constraints on an existing table.

  2. MySQL :: MySQL 8.4 Reference Manual :: 15.1.9 ALTER TABLE

    Renaming a table requires ALTER and DROP on the old table, ALTER, CREATE, and INSERT on the new table. Following the table name, specify the alterations to be made. If none are given, ALTER TABLE does nothing.

  3. MySQL ALTER TABLE

    You will learn how to use the MySQL ALTER TABLE statement to add a column, alter a column, rename a column, drop a column and rename a table.

  4. Guide to ALTER TABLE in MySQL - DEV Community

    Mar 6, 2025 · This guide covers all aspects of ALTER TABLE, including adding, deleting, modifying columns, constraints, indexes, renaming tables, and much more, with real-world examples, SQL queries, and sample output.

  5. MySQL Alter Table: Modifying Your Database Structure

    Dec 31, 2024 · Just like renovating a house, you can use ALTER TABLE to add new features, remove unnecessary elements, or modify existing structures without having to tear everything down and start from scratch! 💡 Fun Fact: ALTER TABLE is one of the most versatile commands in SQL, allowing you to perform a wide range of structural changes. Why Learn ALTER TABLE?

  6. MySQL ALTER TABLE Statement: Definitive Guide - dbvis.com

    Mar 6, 2025 · In MySQL, the ALTER TABLE statement allows you to modify the structure of an existing table. In details, it can be used to add, delete, or drop columns, change column data types, rename columns or tables, add or drop indexes and constraints, and more.

  7. MySQL ALTER TABLE Statement: Usage & Examples - DataCamp

    It allows you to add, delete, or change columns and constraints in a table, making it versatile for database schema management. The `ALTER TABLE` statement is employed when you need to change the structure of a table while typically ensuring data retention. It can be used to rename tables, add or drop columns, and modify existing columns.

  8. SQL ALTER TABLE Keyword - W3Schools

    The ALTER TABLE command adds, deletes, or modifies columns in a table. The ALTER TABLE command also adds and deletes various constraints in a table. The following SQL adds an "Email" column to the "Customers" table: The following SQL deletes the "Email" column from the "Customers" table: SQL Keywords Reference.

  9. MySQL ALTER TABLE Tutorial and Examples

    In this article, we described how to use the ALTER TABLE statement modify a table, including: adding columns, deleting columns, modifying columns, renaming columns, renaming tables, setting primary keys, etc.

  10. MySQL :: MySQL 9.2 Reference Manual :: 15.1.9.3 ALTER TABLE

    To change the storage type of an individual column, you can use ALTER TABLE ... MODIFY [COLUMN]. For example, suppose you create an NDB Cluster Disk Data table with two columns, using this CREATE TABLE statement: TABLE statement, as shown here: You can make an in-memory column into a disk-based column by using STORAGE DISK in a similar fashion.

  11. Some results have been removed
Refresh