Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rename a table in Firebird?

Tags:

sql

firebird

Is it possible to rename a table in Firebird or I should create a new table and then move the data using insert?

like image 266
zac Avatar asked Sep 06 '12 01:09

zac


People also ask

How do I rename an existing table?

ALTER TABLE table_name RENAME TO new_table_name; Columns can be also be given new name with the use of ALTER TABLE.

Can a table be renamed in Oracle?

Use the RENAME statement to rename a table, view, sequence, or private synonym. Oracle Database automatically transfers integrity constraints, indexes, and grants on the old object to the new object.

How do you rename a table in Linux?

We rename a table with the command of “RENAME” as well as with the command of “ALTER”.

Can we rename a table in SQL Server?

Using SQL Server Management StudioIn Object Explorer, right-click the table you want to rename and choose Design from the shortcut menu. From the View menu, choose Properties. In the field for the Name value in the Properties window, type a new name for the table.


1 Answers

Apparently not.

You must either create a new table, copying over old values or create a view with the intended name which is identical to the original table.

See http://www.firebirdfaq.org/faq363/ for further details.

like image 103
Morten Christiansen Avatar answered Sep 18 '22 05:09

Morten Christiansen