About 314,000 results
Open links in new tab
  1. ALTER (RENAME) in SQL - GeeksforGeeks

    Apr 14, 2025 · The SQL ALTER TABLE command is an effective way to modify the structure of an already-existing tables in a database. When necessary, we can use ALTER TABLE to rename …

  2. SQL ALTER TABLE Statement - W3Schools

    ALTER TABLE - RENAME COLUMN. To rename a column in a table, use the following syntax:

  3. How to rename a table in SQL Server? - Stack Overflow

    To rename a table in SQL Server, use the sp_rename command: exec sp_rename 'schema.old_table_name', 'new_table_name'

  4. SQL: ALTER TABLE Statement - TechOnTheNet

    To modify a column in an existing table, the SQL ALTER TABLE syntax is: For Oracle, MySQL, MariaDB: MODIFY column_name column_type; For SQL Server: ALTER COLUMN …

  5. How to Use the Alter Command in SQL: Renaming Tables and …

    Mar 3, 2024 · In SQL Server, the syntax for renaming a table involves using the sp_rename stored procedure instead: EXEC sp_rename 'old_table_name', 'new_table_name'; To rename a …

  6. SQL ALTER TABLE RENAME Statement - TutorialsTeacher.com

    ALTER TABLE RENAME - Rename Columns . The ALTER command is a DDL command to modify the structure of existing tables in the database by adding, modifying, renaming, or …

  7. How to Use the ALTER TABLE Statement in SQL - W3Schools

    To rename a table or column, use the following syntax: RENAME TO new_table_name; RENAME COLUMN old_column_name TO new_column_name; For example, to rename the employees …

  8. 10 Examples of ALTER Table Command in SQL - SQLrevisited

    Sep 2, 2024 · By using ALTER command we can add, edit, or modify tables, views, and databases. We can add a new column on the table, we can change the value of the column or …

  9. SQL ALTER TABLE: A Complete Guide - Database Star

    Jun 10, 2023 · An example of the ALTER TABLE DROP CONSTRAINT command is: ALTER TABLE student DROP CONSTRAINT fk_address_addid; Or, we can use the constraint type …

  10. How do I rename a column in a database table using SQL?

    Oct 6, 2008 · You can use the following command to rename the column of any table in SQL Server: exec sp_rename 'TableName.OldColumnName', 'New colunmName'

  11. Some results have been removed
Refresh