About 967,000 results
Open links in new tab
  1. How to change a table name using an SQL query? - Stack Overflow

    May 20, 2009 · 131 How can I in change the table name using a query statement? I used the following syntax but I couldn't find the rename keyword in SQL server 2005.

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

    The SQL query that I have used is : ALTER TABLE oldtable RENAME TO newtable; But, it gives me an error. Server: Msg 156, Level 15, State 1, Line 1 Incorrect syntax ...

  3. database - Rename a table in MySQL - Stack Overflow

    Sep 29, 2012 · RENAME TABLE <old_table_name> TO <new_table_name> In your query, you've used group which is one of the keywords in MySQL. Try to avoid MySQL keywords for names while …

  4. SQL Server - Ways of renaming a table name - Stack Overflow

    Nov 7, 2017 · The easiest way would be to right click on the table name and click "rename". Both of your methods of using a proc are correct, though. I would caution using this procedure though, especially …

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

    Oct 6, 2008 · 155 If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database …

  6. Rename column SQL Server 2008 - Stack Overflow

    Apr 30, 2013 · I am using SQL Server 2008 and Navicat. I need to rename a column in a table using SQL. ALTER TABLE table_name RENAME COLUMN old_name to new_name; This statement …

  7. sql - A table name as a variable - Stack Overflow

    For static queries, like the one in your question, table names and column names need to be static. For dynamic queries, you should generate the full SQL dynamically, and use sp_executesql to execute it. …

  8. Change Schema Name Of Table In SQL - Stack Overflow

    I want to change schema name of table Employees in Database. In the current table Employees database schema name is dbo I want to change it to exe. How can I do it ? Example: FROM …

  9. Rename Oracle Table or View - Stack Overflow

    May 7, 2009 · or ALTER TABLE mytable RENAME TO othertable; or, if owned by another schema: ALTER TABLE owner.mytable RENAME TO othertable; Interestingly, ALTER VIEW does not support …

  10. How do you change the datatype of a column in T-SQL Server?

    Mar 9, 2009 · I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter this table?